fix: tag ending space

This commit is contained in:
boojack 2022-06-19 10:42:07 +08:00
parent 164873b344
commit b96d78ed19

View file

@ -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 )")
}
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(`