This commit is contained in:
adueck 2023-08-28 14:56:19 +04:00
parent 05bb042f67
commit 72c6f4bf79
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ export async function getLingdocsUser(
export async function getAllLingdocsUsers(): Promise<T.LingdocsUser[]> {
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<T.LingdocsUser[]> {
export async function getAllFeedback(): Promise<any[]> {
const res = await feedbackDb.find({
selector: { doc: { $exists: true } },
selector: { feedback: { $exists: true } },
});
console.log({ res });
return res.docs as any[];