mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 22:48:26 +00:00
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import { prisma } from "~/db.server";
|
|
|
|
export const getIntegrationAccount = async (
|
|
integrationDefinitionId: string,
|
|
userId: string,
|
|
) => {
|
|
return await prisma.integrationAccount.findFirst({
|
|
where: {
|
|
integrationDefinitionId: integrationDefinitionId,
|
|
integratedById: userId,
|
|
isActive: true,
|
|
},
|
|
});
|
|
};
|