Make createFile send the error on rejection

This commit is contained in:
Lee
2022-11-17 06:47:55 +00:00
parent ce5ed88418
commit 65ded04e73

View File

@ -114,7 +114,7 @@ export async function createFile(
resolve(`${fileId}.${extention}`); resolve(`${fileId}.${extention}`);
}) })
.catch((err) => { .catch((err) => {
reject(); reject(err);
}); });
}); });
} }