in src/lib/store/modules/entity.store.js [38:57]
async fetchEntity({commit}, {clientId, entityId}) {
const params = {clientId, entityId};
const entity = await custosService.entities.getEntity(params);
commit('SET_ENTITY', {
clientId,
entityId: entity.id,
type: entity.type,
name: entity.name,
description: entity.description,
parentId: entity.parent_id,
ownerId: entity.owner_id,
createdAt: new Date(parseInt(entity.created_at)).toLocaleString(),
updatedAt: new Date(parseInt(entity.updated_at)).toLocaleString(),
sharedCount: entity.shared_count,
fullText: entity.full_text,
binaryData: entity.binary_data,
metadata: entity.metadata,
ext: entity.ext
});
},