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

@@ -57,7 +57,7 @@ function register(router) {
ru.route(router, 'delete' ,'/etapi/branches/:branchId', (req, res, next) => {
const branch = becca.getBranch(req.params.branchId);
if (!branch) {
if (!branch || branch.isDeleted) {
return res.sendStatus(204);
}