server-ts: Port share/share_root

This commit is contained in:
Elian Doran
2024-04-09 21:51:23 +03:00
parent 80a1b8b44d
commit b07df6061f
4 changed files with 12 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ const SNote = require('./entities/snote.js');
const SBranch = require('./entities/sbranch.js');
const SAttribute = require('./entities/sattribute.js');
const SAttachment = require('./entities/sattachment.js');
const shareRoot = require('../share_root.js');
const shareRoot = require('../share_root');
const eventService = require('../../services/events');
function load() {
@@ -89,7 +89,7 @@ function ensureLoad() {
}
}
eventService.subscribe([ eventService.ENTITY_CREATED, eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED, eventService.ENTITY_CHANGE_SYNCED, eventService.ENTITY_DELETE_SYNCED ], ({ entityName, entity }) => {
eventService.subscribe([eventService.ENTITY_CREATED, eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED, eventService.ENTITY_CHANGE_SYNCED, eventService.ENTITY_DELETE_SYNCED], ({ entityName, entity }) => {
shaca.reset();
});