(accountId: string, authId: string)
| 303 | } |
| 304 | |
| 305 | async function findUser(accountId: string, authId: string) { |
| 306 | return await prisma.users.findFirst({ |
| 307 | where: { |
| 308 | accountsId: accountId, |
| 309 | authsId: authId, |
| 310 | }, |
| 311 | }); |
| 312 | } |
| 313 | |
| 314 | async function checkoutTenant(authId: string, accountId: string) { |
| 315 | await prisma.auths.update({ where: { id: authId }, data: { accountId } }); |
no outgoing calls
no test coverage detected