mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 00:51:30 +03:00
chore: fix typo
This commit is contained in:
parent
c703f281d9
commit
47ffd99c3b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user