Skip to content

Commit

Permalink
fix(sys server): fix mongo version in deploys; fix regexp options error;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Sep 28, 2021
1 parent f2defc2 commit 35c4ce6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy-scripts/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.8'
services:
mongo:
image: bitnami/mongodb:latest
image: bitnami/mongodb:4.4
environment:
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_INITIAL_PRIMARY_HOST=mongo
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.8'
services:
mongo:
image: bitnami/mongodb:latest
image: bitnami/mongodb:4.4
environment:
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_INITIAL_PRIMARY_HOST=mongo
Expand Down
8 changes: 4 additions & 4 deletions packages/system-server/src/router/function/get.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: Maslow<wangfugen@126.com>
* @Date: 2021-08-30 16:51:19
* @LastEditTime: 2021-09-22 11:45:06
* @LastEditTime: 2021-09-28 17:21:46
* @Description:
*/

Expand Down Expand Up @@ -40,9 +40,9 @@ export async function handleGetFunctions(req: Request, res: Response) {
}
if (keyword) {
query['$or'] = [
{ name: db.RegExp({ regexp: `.*${keyword}.*` }) },
{ label: db.RegExp({ regexp: `.*${keyword}.*` }) },
{ description: db.RegExp({ regexp: `.*${keyword}.*` }) }
{ name: db.RegExp({ regexp: `.*${keyword}.*`, options: 'i' }) },
{ label: db.RegExp({ regexp: `.*${keyword}.*`, options: 'i' }) },
{ description: db.RegExp({ regexp: `.*${keyword}.*`, options: 'i' }) }
]
}

Expand Down

0 comments on commit 35c4ce6

Please sign in to comment.