removed misplaced await that was breaking query
This commit is contained in:
parent
e8fdd91529
commit
339fe2cd19
Binary file not shown.
|
@ -1,9 +1,11 @@
|
||||||
import { db } from "./db.mjs"
|
import { db } from "./db.mjs"
|
||||||
|
|
||||||
export default async function getNewPrompt({ minCount = 200000, maxCount = 30000000, rarityBias = 0.5 }) {
|
const badWords = db('bad_words')
|
||||||
const badWords = await db('bad_words')
|
|
||||||
.select('word')
|
.select('word')
|
||||||
|
|
||||||
|
export default async function getNewPrompt({ minCount = 200000, maxCount = 30000000, rarityBias = 0.5 }) {
|
||||||
|
|
||||||
|
|
||||||
const prompts = await db('dictionary')
|
const prompts = await db('dictionary')
|
||||||
.select('*')
|
.select('*')
|
||||||
.where({
|
.where({
|
||||||
|
@ -38,7 +40,7 @@ export default async function getNewPrompt({ minCount = 200000, maxCount = 30000
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//console.log(await getNewPrompt({}))
|
console.dir(await getNewPrompt({}))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue