big ole refactor
This commit is contained in:
@@ -92,5 +92,5 @@ func DeletePermission(ctx context.Context, tx bun.Tx, id int) error {
|
||||
if id <= 0 {
|
||||
return errors.New("id must be positive")
|
||||
}
|
||||
return DeleteWithProtection[Permission](ctx, tx, id)
|
||||
return DeleteWithProtection[Permission](ctx, tx, id, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user