diff --git a/account/src/lib/couch-db.ts b/account/src/lib/couch-db.ts index fd7efd6..2f357f1 100644 --- a/account/src/lib/couch-db.ts +++ b/account/src/lib/couch-db.ts @@ -59,7 +59,7 @@ export async function getLingdocsUser( export async function getAllLingdocsUsers(): Promise { const users = await usersDb.find({ - selector: { feedback: { $exists: true } }, + selector: { userId: { $exists: true } }, limit: 5000, }); return users.docs as T.LingdocsUser[]; @@ -67,7 +67,7 @@ export async function getAllLingdocsUsers(): Promise { export async function getAllFeedback(): Promise { const res = await feedbackDb.find({ - selector: { doc: { $exists: true } }, + selector: { feedback: { $exists: true } }, }); console.log({ res }); return res.docs as any[];