rename becca entities to have B-prefix, #3476

This commit is contained in:
zadam
2023-01-03 13:52:37 +01:00
parent da161c7ce0
commit bff7434921
51 changed files with 224 additions and 225 deletions

View File

@@ -3,7 +3,7 @@ const scriptService = require('./script');
const treeService = require('./tree');
const noteService = require('./notes');
const becca = require('../becca/becca');
const Attribute = require('../becca/entities/attribute');
const BAttribute = require('../becca/entities/battribute');
function runAttachedRelations(note, relationName, originEntity) {
if (!note) {
@@ -177,7 +177,7 @@ eventService.subscribe(eventService.ENTITY_CHANGED, ({ entityName, entity }) =>
.some(attr => attr.value === note.noteId);
if (!hasInverseAttribute) {
new Attribute({
new BAttribute({
noteId: targetNote.noteId,
type: 'relation',
name: definition.inverseRelation,