test
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user