diff --git a/store/memo.go b/store/memo.go index ccbc2c11..87c9ddaa 100644 --- a/store/memo.go +++ b/store/memo.go @@ -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)