correct handling of inclusion of dependencies

This commit is contained in:
azivner
2018-02-18 10:47:02 -05:00
parent ddc885066e
commit fda4146150
3 changed files with 18 additions and 13 deletions

View File

@@ -23,6 +23,10 @@ class Note extends Entity {
return this.type === "code" && this.mime === "application/json";
}
isJavaScript() {
return this.type === "code" && this.mime === "application/javascript";
}
async getAttributes() {
return this.repository.getEntities("SELECT * FROM attributes WHERE noteId = ? AND isDeleted = 0", [this.noteId]);
}