/home/jiachen/projects/friendmex/indexer/dist/stats.js:37:46
34 */
35 updateNewestUsers() {
36 return __awaiter(this, void 0, void 0, function* () {
→ 37 const users = yield this.db.user.findMany(
The table `public.User` does not exist in the current database.
at zr.handleRequestError (/home/jiachen/projects/friendmex/indexer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:8308)
at zr.handleAndLogRequestError (/home/jiachen/projects/friendmex/indexer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:7697)
at zr.request (/home/jiachen/projects/friendmex/indexer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:7307) {
code: 'P2021',
clientVersion: '5.0.0',
meta: { table: 'public.User' }
}
ELIFECYCLE Command failed with exit code 1.
updateNewestUsers() {
return __awaiter(this, void 0, void 0, function* () {
const users = yield this.db.user.findMany({
orderBy: {
createdAt: "desc",
},
take: 50,
});
yield this.redis.set("latest_users", JSON.stringify(users));
});
}