getWords now throws error
This commit is contained in:
parent
0c92bffa87
commit
b78fc7b9fb
|
@ -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) =>{
|
||||||
|
|
Loading…
Reference in New Issue