fix
This commit is contained in:
parent
c5a73d57da
commit
a8fdfdccd1
|
@ -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 = {
|
return {
|
||||||
|
attachmentFile: {
|
||||||
name: multipartFile.filename,
|
name: multipartFile.filename,
|
||||||
path,
|
path,
|
||||||
};
|
},
|
||||||
|
|
||||||
return {
|
|
||||||
attachmentFile,
|
|
||||||
cleanup,
|
cleanup,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue