fix: postgres indexing (#791) + deactivate handler
This commit is contained in:
1 parent
2a950575e2
commit
7c77cb0815
12 files changed
+157
-43
No files matched your search
@@ -1,4 +1,4 @@
|
||||
const _ = require('lodash')
|
||||
/* global WIKI */
|
||||
|
||||
module.exports = {
|
||||
activate() {
|
||||
@@ -32,7 +32,7 @@ module.exports = {
|
||||
}
|
||||
// TODO: Add user permissions filtering
|
||||
builder.andWhere(builder => {
|
||||
switch(WIKI.config.db.type) {
|
||||
switch (WIKI.config.db.type) {
|
||||
case 'postgres':
|
||||
builder.where('title', 'ILIKE', `%${q}%`)
|
||||
builder.orWhere('description', 'ILIKE', `%${q}%`)
|
||||
|
||||
Reference in new issue
Block a user