This commit is contained in:
Tom Moor
2023-11-15 20:50:44 -05:00
parent a0b51b8c71
commit e76dcc0baf
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ export default class ExportJSONTask extends ExportTask {
attachment.key,
new Promise<Buffer>((resolve) => {
attachment.buffer.then(resolve).catch((err) => {
Logger.warn(`Failed to read attachment from S3`, {
Logger.warn(`Failed to read attachment from storage`, {
attachmentId: attachment.id,
teamId: attachment.teamId,
error: err.message,

View File

@@ -68,7 +68,7 @@ export default class LocalStorage extends BaseStorage {
const filePath = this.getFilePath(key);
// Create the file on disk first
await fs.open(filePath, "w").then(close);
await fs.createFile(filePath);
return new Promise<string>((resolve, reject) => {
const dest = fs