more becca changes

This commit is contained in:
zadam
2021-04-26 22:24:55 +02:00
parent e466c393eb
commit 219098ab53
5 changed files with 20 additions and 7 deletions

View File

@@ -164,6 +164,12 @@ class Attribute extends AbstractEntity {
utcDateModified: this.utcDateModified
});
}
markAttributeAsDeleted() {
sql.execute("UPDATE attributes SET isDeleted = 1 WHERE attributeId = ?", [this.attributeId]);
// FIXME: this needs to be published into entity_changes (for sync and becca cleanup)
}
}
module.exports = Attribute;