first commit

This commit is contained in:
dwindown
2025-10-09 12:52:41 +07:00
commit 0da6071eb3
205 changed files with 30980 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { Injectable } from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
import { getTempUserId } from '../common/user.util';
@Injectable()
export class UsersService {
constructor(private prisma: PrismaService) {}
async me() {
const userId = getTempUserId();
return this.prisma.user.findUnique({ where: { id: userId } });
}
}