feat: Organization operations like invite and accept

This commit is contained in:
sauravdhakal12
2026-02-22 17:27:37 +05:45
parent afed1731d2
commit 90b0192cd2
22 changed files with 1604 additions and 73 deletions

View File

@@ -28,7 +28,7 @@ export class UserService {
});
}
async getById(id: string) {
async findById(id: string) {
return await this.prisma.user.findUnique({
where: {
id: id,
@@ -36,6 +36,14 @@ export class UserService {
});
}
async findByEmail(email: string) {
return await this.prisma.user.findUnique({
where: {
email: email,
},
});
}
async updateRefreshToken(id: string, refreshToken: string) {
return await this.prisma.user.update({
where: { id },