test
This commit is contained in:
@@ -98,7 +98,7 @@ export default class ExportJSONTask extends ExportTask {
|
|||||||
attachment.key,
|
attachment.key,
|
||||||
new Promise<Buffer>((resolve) => {
|
new Promise<Buffer>((resolve) => {
|
||||||
attachment.buffer.then(resolve).catch((err) => {
|
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,
|
attachmentId: attachment.id,
|
||||||
teamId: attachment.teamId,
|
teamId: attachment.teamId,
|
||||||
error: err.message,
|
error: err.message,
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export default class LocalStorage extends BaseStorage {
|
|||||||
const filePath = this.getFilePath(key);
|
const filePath = this.getFilePath(key);
|
||||||
|
|
||||||
// Create the file on disk first
|
// Create the file on disk first
|
||||||
await fs.open(filePath, "w").then(close);
|
await fs.createFile(filePath);
|
||||||
|
|
||||||
return new Promise<string>((resolve, reject) => {
|
return new Promise<string>((resolve, reject) => {
|
||||||
const dest = fs
|
const dest = fs
|
||||||
|
|||||||
Reference in New Issue
Block a user