Commit d2fb4bc
committed
Only trigger pivot attach on creation (not on updates)
Use created() instead of saved() in TriggerSyncingEvents so that updating
pivot columns no longer attempts to attach. Attaching re-created the tenant
resource and caused a duplicate entry error (detaching already uses deleting(),
so using created() is more consistent with that anyway)1 parent 5e3eb43 commit d2fb4bc
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments