fix(db-postgres): type issue in migratePostgresV2toV3 call if ts strict mode is enabled (#6585)
This commit is contained in:
@@ -20,7 +20,7 @@ const require = createRequire(import.meta.url)
|
|||||||
type Args = {
|
type Args = {
|
||||||
debug?: boolean
|
debug?: boolean
|
||||||
payload: Payload
|
payload: Payload
|
||||||
req: PayloadRequestWithData
|
req?: Partial<PayloadRequestWithData>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ type Args = {
|
|||||||
isVersions: boolean
|
isVersions: boolean
|
||||||
pathsToQuery: PathsToQuery
|
pathsToQuery: PathsToQuery
|
||||||
payload: Payload
|
payload: Payload
|
||||||
req: PayloadRequestWithData
|
req?: Partial<PayloadRequestWithData>
|
||||||
tableName: string
|
tableName: string
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ export const migrateRelationships = async ({
|
|||||||
globalSlug,
|
globalSlug,
|
||||||
isVersions,
|
isVersions,
|
||||||
payload,
|
payload,
|
||||||
req,
|
req: req as PayloadRequestWithData,
|
||||||
tableName,
|
tableName,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user