getWords now throws error

This commit is contained in:
Andrzej Stepien 2023-08-12 15:01:06 +02:00
parent 0c92bffa87
commit b78fc7b9fb
1 changed files with 2 additions and 2 deletions

View File

@ -11,11 +11,11 @@ export const db = Knex({
})
export const getWords = async () => {
const childLogger = logger.child({ db })
childLogger.trace("getWords called")
logger.trace("getWords called")
return db
.select("word")
.from("dictionary")
.catch(error=>{throw error})
}
export const valueExistsInTable = async (table,column,value) =>{