feat: Organization operations like invite and accept
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user