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
@@ -173,7 +173,7 @@ func (r *repository) Update(ctx context.Context, id int64, dto province.UpdatePr
}
row := r.client.QueryRow(ctx,
`UPDATE provinces SET name = $1, region = $2, active = $3 WHERE id = $4 RETURNING `+provinceSelectColumns,
`UPDATE provinces SET name = $1, region = $2, active = $3 WHERE id = $4 AND deleted_at IS NULL RETURNING `+provinceSelectColumns,
name, region, dto.Active, id,
)
item, err := scanProvince(row)