diff --git a/src/controllers/organization.controller.js b/src/controllers/organization.controller.js index 1f512a96..d8f0d9aa 100644 --- a/src/controllers/organization.controller.js +++ b/src/controllers/organization.controller.js @@ -39,7 +39,7 @@ export const importOrg = async (req, res) => { 'Importing and subscribing organization this can take a few mins.', }); - return Organization.subscribeToOrganization(orgUid, ip, port); + return Organization.importOrganization(orgUid, ip, port); } catch (error) { console.trace(error); res.status(400).json({ diff --git a/src/datalayer/syncService.js b/src/datalayer/syncService.js index bd722466..2844b95b 100644 --- a/src/datalayer/syncService.js +++ b/src/datalayer/syncService.js @@ -151,13 +151,6 @@ const dataLayerWasUpdated = async () => { const updateStoreInfo = await Promise.all( updatedStores.map(async (rootHash) => { const storeId = rootHash.id.replace('0x', ''); - - // update the organization with the new hash - /* await Organization.update( - { registryHash: rootHash.hash }, - { where: { registryId: storeId } }, - );*/ - return { storeId, rootHash: rootHash.hash }; }), );