ETAPI put content

This commit is contained in:
zadam
2022-01-08 12:01:54 +01:00
parent 2532ea525d
commit c5366abf75
7 changed files with 88 additions and 37 deletions

View File

@@ -49,7 +49,7 @@ function register(router) {
ru.route(router, 'delete' ,'/etapi/attributes/:attributeId', (req, res, next) => {
const attribute = becca.getAttribute(req.params.attributeId);
if (!attribute) {
if (!attribute || attribute.isDeleted) {
return res.sendStatus(204);
}
@@ -61,4 +61,4 @@ function register(router) {
module.exports = {
register
};
};