diff --git a/packages/db-postgres/src/predefinedMigrations/v2-v3/index.ts b/packages/db-postgres/src/predefinedMigrations/v2-v3/index.ts index 2857a3800f4..65a8a966a75 100644 --- a/packages/db-postgres/src/predefinedMigrations/v2-v3/index.ts +++ b/packages/db-postgres/src/predefinedMigrations/v2-v3/index.ts @@ -20,7 +20,7 @@ const require = createRequire(import.meta.url) type Args = { debug?: boolean payload: Payload - req: PayloadRequestWithData + req?: Partial } /** diff --git a/packages/db-postgres/src/predefinedMigrations/v2-v3/migrateRelationships.ts b/packages/db-postgres/src/predefinedMigrations/v2-v3/migrateRelationships.ts index 28728693f39..d23f1d97d26 100644 --- a/packages/db-postgres/src/predefinedMigrations/v2-v3/migrateRelationships.ts +++ b/packages/db-postgres/src/predefinedMigrations/v2-v3/migrateRelationships.ts @@ -17,7 +17,7 @@ type Args = { isVersions: boolean pathsToQuery: PathsToQuery payload: Payload - req: PayloadRequestWithData + req?: Partial tableName: string } @@ -88,7 +88,7 @@ export const migrateRelationships = async ({ globalSlug, isVersions, payload, - req, + req: req as PayloadRequestWithData, tableName, }) }