Skip to content

Commit

Permalink
Add TODO to server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jan 26, 2021
1 parent 721a0b7 commit 459c67e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const connect = async () => {
try {
await db.connect()
config.log("Connected to database")
// TODO: `indexExists` causes a deprecation warning. Find a different solution.
if (config.schemes && !(await db.connection.collection("terminologies").indexExists("text"))) {
config.warn("Text index on terminologies collection missing. /voc/search and /voc/suggest are disabled. Run `npm run import -- --indexes` or `npm run import -- -i schemes` to created indexes.")
config.status["voc-search"] = null
Expand Down

0 comments on commit 459c67e

Please sign in to comment.