and another one

This commit is contained in:
2026-02-10 18:07:44 +11:00
parent 299c775aba
commit ac5e38d82b
10 changed files with 52 additions and 60 deletions

View File

@@ -84,7 +84,7 @@ func DeleteByID[T any](tx bun.Tx, id int) *deleter[T] {
func DeleteWithProtection[T systemType](ctx context.Context, tx bun.Tx, id int) error {
deleter := DeleteByID[T](tx, id)
item, err := GetByID[T](tx, id).GetFirst(ctx)
item, err := GetByID[T](tx, id).Get(ctx)
if err != nil {
return errors.Wrap(err, "GetByID")
}