Skip to content

Commit 1fa5e37

Browse files
shepilovtaratatach
andcommitted
fix: quick check for only "created" events
Co-authored-by: Erwan Guyader <taratatach@users.noreply.github.com>
1 parent 7dccb2c commit 1fa5e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/sharing/shared.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ func UpdateShared(inst *instance.Instance, msg TrackMessage, evt TrackEvent) err
426426
}
427427
}
428428

429-
// Send notification to owner if a recipient modified a file
430-
if !removed {
429+
// Send notification to owner if a recipient created a file
430+
if evt.Verb == "CREATED" {
431431
MaybeNotifyFileCreated(inst, msg, evt)
432432
}
433433

0 commit comments

Comments
 (0)