Skip to content

Commit

Permalink
fix movie upload related to update Hapi.js to 19.0.0. 'hapijs/hapi#4017'
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiNyzhnyk committed Mar 11, 2020
1 parent b4b408f commit 529dfbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/admin/controllers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const self = module.exports = {

await Helpers.handleStreamFileUpload(path, file);

return { success: true };
return h.response();
} catch (err) {
console.error(err);
}
Expand Down
1 change: 1 addition & 0 deletions api/admin/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = [
auth: false,
payload: {
output: 'stream',
multipart: true,
maxBytes: 10737418240 // 10 Gb
}
}
Expand Down

0 comments on commit 529dfbb

Please sign in to comment.