Commit ab19b9d
committed
Fix logic mixup with newly introduced
When I introduced the new `procedureName` variable to track whether the `Save()` was calling `CreateTopic` or `UpdateTopic` (#ac6c2ba6), I accidentally got the logic wrong. As a result, `CreateTopic` was being called for new topics, and `UpdateTopic` for existing topics—which caused a mismatch with the parameters. Oops. To fix this, I now use the recently introduced `isNew` variable (#36ca32d), which is a bit more semantically intuitive than `topic.Id > 0`.procedureName variable1 parent 7ca6c0e commit ab19b9d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | | - | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
0 commit comments