~evanj/cms

27783e8f77f8cfeafe1c8f76e2532f87a78d97b9 — Evan M Jones 6 months ago 4c5571c
Fix(search): Removing big string from content search.
2 files changed, 2 insertions(+), 2 deletions(-)

M .gitignore
M internal/s/db/content.go
M .gitignore => .gitignore +1 -0
@@ 1,3 1,4 @@
.env
dev.db
cms
cms.sql

M internal/s/db/content.go => internal/s/db/content.go +1 -2
@@ 398,7 398,6 @@ var (
	 	AND cms_contenttype_to_valuetype.NAME = ?
	 	AND (
			cms_value_string_small.VALUE LIKE ?
			OR cms_value_string_big.VALUE LIKE ?
			OR cms_value_date.VALUE LIKE ?
		)
	 	LIMIT ? OFFSET ?;


@@ 720,7 719,7 @@ func (db *DB) ContentSearch(space space.Space, ct contenttype.ContentType, name,
	s := fmt.Sprintf("%%%s%%", query)

	var ret []content.Content
	rows, err := db.Query(queryContentListByNameAndContentType, ct.ID(), name, s, s, s, perPage, perPage*page)
	rows, err := db.Query(queryContentListByNameAndContentType, ct.ID(), name, s, s, perPage, perPage*page)
	if err != nil {
		return nil, err
	}