mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 12:41:36 +10:00
wip: what if user ids were strings instead of numbers
This commit is contained in:
@ -3,7 +3,7 @@ import { prisma } from '..';
|
||||
export const seedTestEmail = () => `user-${Date.now()}@test.documenso.com`;
|
||||
|
||||
type SeedSubscriptionOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
priceId: string;
|
||||
};
|
||||
|
||||
|
||||
@ -133,7 +133,7 @@ export const seedTeamMember = async ({
|
||||
|
||||
type UnseedTeamMemberOptions = {
|
||||
teamId: number;
|
||||
userId: number;
|
||||
userId: string;
|
||||
};
|
||||
|
||||
export const unseedTeamMember = async ({ teamId, userId }: UnseedTeamMemberOptions) => {
|
||||
@ -147,7 +147,7 @@ export const unseedTeamMember = async ({ teamId, userId }: UnseedTeamMemberOptio
|
||||
});
|
||||
};
|
||||
|
||||
export const seedTeamTransfer = async (options: { newOwnerUserId: number; teamId: number }) => {
|
||||
export const seedTeamTransfer = async (options: { newOwneruserId: string; teamId: number }) => {
|
||||
return await prisma.teamTransferVerification.create({
|
||||
data: {
|
||||
teamId: options.teamId,
|
||||
|
||||
@ -16,7 +16,7 @@ const examplePdf = fs
|
||||
|
||||
type SeedTemplateOptions = {
|
||||
title?: string;
|
||||
userId: number;
|
||||
userId: string;
|
||||
teamId?: number;
|
||||
createTemplateOptions?: Partial<Prisma.TemplateCreateInput>;
|
||||
};
|
||||
|
||||
@ -45,7 +45,7 @@ export const seedUser = async ({
|
||||
});
|
||||
};
|
||||
|
||||
export const unseedUser = async (userId: number) => {
|
||||
export const unseedUser = async (userId: string) => {
|
||||
await prisma.user.delete({
|
||||
where: {
|
||||
id: userId,
|
||||
|
||||
Reference in New Issue
Block a user