added soft deleted
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-05 17:58:23 +05:00
1 parent d1a6fcaadc
commit e0d03730de
36 files changed
+327 -217

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ func (r *repository) Update(ctx context.Context, id int64, dto role.UpdateRoleDT
UPDATE roles SET
code = $1, name = $2, guard_name = $3,
updated_at = (CURRENT_TIMESTAMP AT TIME ZONE 'UTC')
WHERE id = $4
WHERE id = $4 AND deleted_at IS NULL
RETURNING %s`, roleReturningColumns)
item, err := scanRole(r.client.QueryRow(ctx, query, dto.Code, dto.Name, dto.GuardName, id))