Fix AI review

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-01 21:56:17 +01:00
parent 3d4b215b8f
commit e42e6407df
6 changed files with 29 additions and 11 deletions

View File

@@ -550,11 +550,15 @@ WHERE
}
maps.Copy(args, scope.SQLArguments())
_, err = conn.Exec(ctx, q, args)
result, err := conn.Exec(ctx, q, args)
if err != nil {
return fmt.Errorf("cannot update connector: %w", err)
}
if result.RowsAffected() == 0 {
return ErrResourceNotFound
}
c.EncryptedConnection = encryptedConnection
c.populateSlackSettings()