chore: fix typo

This commit is contained in:
boojack 2022-07-30 07:47:18 +08:00
parent c703f281d9
commit 47ffd99c3b

View File

@ -286,7 +286,7 @@ func findMemoRawList(db *sql.DB, find *api.MemoFind) ([]*memoRaw, error) {
func deleteMemo(db *sql.DB, delete *api.MemoDelete) error {
result, err := db.Exec(`
PRAGMA foreign_keys = ON;
DELETE FROM resource WHERE id = ?
DELETE FROM memo WHERE id = ?
`, delete.ID)
if err != nil {
return FormatError(err)