mirror of
https://github.com/usememos/memos.git
synced 2024-09-20 14:35:54 +08:00
fix: tag ending space
This commit is contained in:
parent
164873b344
commit
b96d78ed19
|
@ -210,7 +210,7 @@ func findMemoRawList(db *sql.DB, find *api.MemoFind) ([]*memoRaw, error) {
|
||||||
where = append(where, "id in (SELECT memo_id FROM memo_organizer WHERE pinned = 1 AND user_id = memo.creator_id )")
|
where = append(where, "id in (SELECT memo_id FROM memo_organizer WHERE pinned = 1 AND user_id = memo.creator_id )")
|
||||||
}
|
}
|
||||||
if v := find.Tag; v != nil {
|
if v := find.Tag; v != nil {
|
||||||
where, args = append(where, "content LIKE ?"), append(args, "%#"+*v+"%")
|
where, args = append(where, "content LIKE ?"), append(args, "%#"+*v+" %")
|
||||||
}
|
}
|
||||||
|
|
||||||
rows, err := db.Query(`
|
rows, err := db.Query(`
|
||||||
|
|
Loading…
Reference in a new issue