Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHllm committed Jul 1, 2024
1 parent b01690c commit 23f0283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 }
}
Expand Down
2 changes: 1 addition & 1 deletion public/js/cover.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ $('.ui-use-tags').on('change', function () {
checkHistoryList()
})

let lastSearchInputTime = 0;
let lastSearchInputTime = 0

$('.search2').on('input', () => {
const eventTime = Date.now()
Expand Down

0 comments on commit 23f0283

Please sign in to comment.