fix: delete memo resource

This commit is contained in:
steven
2022-10-01 00:06:56 +08:00
parent 4c465bef2d
commit 33d31b7dca
2 changed files with 5 additions and 2 deletions

View File

@ -174,7 +174,7 @@ func deleteMemoResource(ctx context.Context, tx *sql.Tx, delete *api.MemoResourc
}
result, err := tx.ExecContext(ctx, `
DELETE FROM memo WHERE `+strings.Join(where, " AND "), args...)
DELETE FROM memo_resource WHERE `+strings.Join(where, " AND "), args...)
if err != nil {
return FormatError(err)
}