This commit is contained in:
おさむのひと 2025-04-28 22:15:14 +09:00
parent c5a73d57da
commit a8fdfdccd1
1 changed files with 6 additions and 7 deletions

View File

@ -493,17 +493,16 @@ export class ApiCallService implements OnApplicationShutdown {
if (multipartFile.file.truncated) { if (multipartFile.file.truncated) {
throw createTooLongError(); throw createTooLongError();
} }
} finally { } catch (err) {
cleanup(); cleanup();
throw err;
} }
const attachmentFile = {
name: multipartFile.filename,
path,
};
return { return {
attachmentFile, attachmentFile: {
name: multipartFile.filename,
path,
},
cleanup, cleanup,
}; };
} }