diff --git a/packages/storage/src/createSavers.ts b/packages/storage/src/createSavers.ts index 45c314a3e495..a50781d4e20f 100644 --- a/packages/storage/src/createSavers.ts +++ b/packages/storage/src/createSavers.ts @@ -64,7 +64,7 @@ export const createUploadSavers = ( savers[saverKey] = async (data, overrideSaveOptions) => { const updatedFields = {} as Record - for await (const field of currentModelUploadFields) { + for (const field of currentModelUploadFields) { if (data[field]) { const file = data[field] diff --git a/packages/storage/src/prismaExtension.ts b/packages/storage/src/prismaExtension.ts index 9794dcb1fec2..f66e1ac4d7a3 100644 --- a/packages/storage/src/prismaExtension.ts +++ b/packages/storage/src/prismaExtension.ts @@ -101,7 +101,7 @@ export const createUploadsExtension = ( const createDatas = args.data as [] // If the create fails, we need to delete the uploaded files - for await (const createData of createDatas) { + for (const createData of createDatas) { await removeUploadedFiles(uploadFields, createData) } @@ -258,7 +258,7 @@ export const createUploadsExtension = ( return async () => { const base64UploadFields: Record = {} - for await (const field of uploadFields) { + for (const field of uploadFields) { base64UploadFields[field] = await fileToDataUri( modelData[field] as string, storageAdapter, @@ -329,7 +329,7 @@ export const createUploadsExtension = ( return } - for await (const field of fieldsToDelete) { + for (const field of fieldsToDelete) { const uploadLocation = data?.[field] if (uploadLocation) { try {