mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:27:09 +00:00
17 lines
265 B
JavaScript
17 lines
265 B
JavaScript
|
|
const { qc } = require('../../../../lib/db');
|
|
|
|
module.exports = async function (req, res, next) {
|
|
|
|
try {
|
|
const payload = req.body;
|
|
|
|
await qc.results.accept(req.params.project, payload);
|
|
res.status(204).send();
|
|
next();
|
|
} catch (err) {
|
|
next(err);
|
|
}
|
|
|
|
};
|