({
authId,
accountId,
}: {
authId: string;
accountId: string;
})
| 52 | }); |
| 53 | } |
| 54 | static async updateTenant({ |
| 55 | authId, |
| 56 | accountId, |
| 57 | }: { |
| 58 | authId: string; |
| 59 | accountId: string; |
| 60 | }) { |
| 61 | await prisma.auths.update({ |
| 62 | where: { |
| 63 | id: authId, |
| 64 | }, |
| 65 | data: { accountId }, |
| 66 | }); |
| 67 | } |
| 68 | static async getUserById(id: string) { |
| 69 | return await prisma.auths.findUnique({ |
| 70 | where: { id }, |