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

@@ -10,7 +10,7 @@ const ws = require('../../services/ws');
const log = require('../../services/log');
const utils = require('../../services/utils');
const path = require('path');
const Attribute = require('../../becca/entities/attribute');
const BAttribute = require('../../becca/entities/battribute');
const htmlSanitizer = require('../../services/html_sanitizer');
const {formatAttrForSearch} = require("../../services/attribute_formatter");
@@ -131,13 +131,13 @@ function processContent(images, note, content) {
const {note: imageNote, url} = imageService.saveImage(note.noteId, buffer, filename, true);
new Attribute({
new BAttribute({
noteId: imageNote.noteId,
type: 'label',
name: 'archived'
}).save(); // so that these image notes don't show up in search / autocomplete
new Attribute({
new BAttribute({
noteId: note.noteId,
type: 'relation',
name: 'imageLink',