mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
sign file is non mutating now
This commit is contained in:
parent
162b46e7f9
commit
a38e36ac6d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user