mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
ETAPI put content
This commit is contained in:
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user