Webhooks ported. Not tested.
This commit is contained in:
parent
dda95ecdb3
commit
27021e9b2b
7 changed files with 296 additions and 17 deletions
|
@ -1,7 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
const passport = require('../lib/passport');
|
||||
const _ = require('../lib/translate')._;
|
||||
const reports = require('../models/reports');
|
||||
const reportHelpers = require('../lib/report-helpers');
|
||||
const shares = require('../models/shares');
|
||||
|
@ -23,7 +22,7 @@ router.getAsync('/:id/download', passport.loggedIn, async (req, res) => {
|
|||
res.sendFile(reportHelpers.getReportContentFile(report), {headers: headers});
|
||||
|
||||
} else {
|
||||
return res.status(404).send(_('Report not found'));
|
||||
return res.status(404).send('Report not found');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue