diff --git a/lib/search/index.js b/lib/search/index.js index 20c6d5df8..4fb613114 100644 --- a/lib/search/index.js +++ b/lib/search/index.js @@ -4,7 +4,6 @@ var models = require('../models') var Sequelize = require('sequelize') var response = require('../response') -var models = require('../models') var utils = require('../utils') function search (req, res, next) { @@ -19,7 +18,7 @@ function search (req, res, next) { attributes: ['id', 'alias', 'permission', 'title', 'content', 'authorship', 'createdAt', 'updatedAt', 'ownerId', 'lastchangeuserId', [Sequelize.fn('to_tsvector', Sequelize.col('content')), 'vec']], where: Sequelize.and( - Sequelize.literal(`to_tsvector("content") @@ to_tsquery($query)`), + Sequelize.literal(`to_tsvector("content") @@ to_tsquery($query)`) ), bind: { query } } diff --git a/public/js/cover.js b/public/js/cover.js index ca6963008..49710f8dc 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -608,7 +608,7 @@ $('.ui-use-tags').on('change', function () { checkHistoryList() }) -let lastSearchInputTime = 0; +let lastSearchInputTime = 0 $('.search2').on('input', () => { const eventTime = Date.now()