diff --git a/internal/webhooks/location.go b/internal/webhooks/location.go index 6a111c38..c4b350b1 100644 --- a/internal/webhooks/location.go +++ b/internal/webhooks/location.go @@ -40,6 +40,8 @@ func (p *locationProcessor) Create(loc *duoapi.Location[duoapi.LocationUser], me SetUser(user). SetUserDuoID(loc.User.ID). SetUserDuoLogin(user.DuoLogin). + OnConflictColumns(location.FieldDuoID). + UpdateNewValues(). Exec(p.ctx) } func (p *locationProcessor) Close(loc *duoapi.Location[duoapi.LocationUser], metadata *duoapi.WebhookMetadata) error {