( accountId: string )
| 16 | }; |
| 17 | |
| 18 | export async function findUsersByAccountId( |
| 19 | accountId: string |
| 20 | ): Promise<UserMap[]> { |
| 21 | return await prisma.users.findMany({ |
| 22 | where: { accountsId: accountId }, |
| 23 | select: { |
| 24 | externalUserId: true, |
| 25 | id: true, |
| 26 | }, |
| 27 | }); |
| 28 | } |
| 29 | |
| 30 | export const findUser = async ( |
| 31 | externalUserId: string, |