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 () => { export const getWords = async () => {
const childLogger = logger.child({ db }) logger.trace("getWords called")
childLogger.trace("getWords called")
return db return db
.select("word") .select("word")
.from("dictionary") .from("dictionary")
.catch(error=>{throw error})
} }
export const valueExistsInTable = async (table,column,value) =>{ export const valueExistsInTable = async (table,column,value) =>{