sign file is non mutating now

This commit is contained in:
Marc-Roig 2023-02-19 18:08:44 +01:00
parent 162b46e7f9
commit a38e36ac6d

View File

@ -49,10 +49,8 @@ module.exports = {
id
);
const fileService = await getService('file');
await fileService.signFileUrls(file);
ctx.body = await pm.sanitizeOutput(file);
const signedFile = await getService('file').signFileUrls(file);
ctx.body = await pm.sanitizeOutput(signedFile);
},
async destroy(ctx) {