( key: string, object: typeof Db.storageObjects.$inferSelect, read: (fileId: string) => Effect.Effect<A, StorageDomain.StorageError>, )
| 389 | ), |
| 390 | ); |
| 391 | const withRecoveredDriveFile = <A>( |
| 392 | key: string, |
| 393 | object: typeof Db.storageObjects.$inferSelect, |
| 394 | read: (fileId: string) => Effect.Effect<A, StorageDomain.StorageError>, |
| 395 | ) => |
| 396 | read(object.providerObjectId).pipe( |
| 397 | Effect.catchTag("StorageError", () => |
| 398 | recoverDriveFileId(key, object).pipe(Effect.flatMap(read)), |
| 399 | ), |
| 400 | ); |
| 401 | |
| 402 | const multipart: MultipartAccess = { |
| 403 | create: ( |
no test coverage detected