support for cssClass label on note

This commit is contained in:
azivner
2018-08-13 10:59:31 +02:00
parent 12d82e3b33
commit cd9eef32b0
6 changed files with 73 additions and 3 deletions

View File

@@ -10,6 +10,10 @@ async function setEntityConstructor(constructor) {
}
async function getEntityFromName(entityName, entityId) {
if (!entityName || !entityId) {
return null;
}
const constructor = entityConstructor.getEntityFromTableName(entityName);
return await getEntity(`SELECT * FROM ${constructor.tableName} WHERE ${constructor.primaryKeyName} = ?`, [entityId]);