This commit is contained in:
Tom Moor committed 2023-11-15 20:50:44 -05:00
1 parent a0b51b8c71
commit e76dcc0baf
2 files changed
+2 -2

No files matched your search

+1 -1
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,
+1 -1
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