mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
rename becca entities to have B-prefix, #3476
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user