This repository was archived by the owner on Feb 27, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import { PrismaClient } from '@prisma/client';
22
33const prisma = new PrismaClient ( ) ;
44
5- async function main ( ) { }
5+ async function main ( ) {
6+ const count = await prisma . user . count ( ) ;
7+ console . log ( count ) ;
8+ }
69
710main ( )
811 . catch ( ( e ) => {
1114 } )
1215 . finally ( async ( ) => {
1316 await prisma . $disconnect ( ) ;
14- } ) ;
17+ } ) ;
Original file line number Diff line number Diff line change 1- import { prisma } from "shared/prisma" ;
1+ import { prisma } from "../../ shared/prisma" ;
22import { AppController } from "./controller" ;
33import { ConfigResponseSchema , BulkUpdateConfigSchema } from "./dto" ;
44import { FastifyInstance } from "fastify" ;
Original file line number Diff line number Diff line change 1- import { prisma } from "shared/prisma" ;
1+ import { prisma } from "../../ shared/prisma" ;
22import { createPasswordSchema } from "../auth/dto" ;
33import { UserController } from "./controller" ;
44import { UpdateUserSchema , UserResponseSchema } from "./dto" ;
@@ -13,7 +13,7 @@ export async function userRoutes(app: FastifyInstance) {
1313 try {
1414 const usersCount = await prisma . user . count ( ) ;
1515
16- if ( usersCount > 0 ) {
16+ if ( usersCount > 0 ) {
1717 await request . jwtVerify ( ) ;
1818 if ( ! request . user . isAdmin ) {
1919 return reply
You can’t perform that action at this time.
0 commit comments