Skip to content

Commit

Permalink
fix: call the correct functions when import org
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Feb 21, 2022
1 parent 1d02610 commit 4b22c94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/controllers/organization.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
7 changes: 0 additions & 7 deletions src/datalayer/syncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}),
);
Expand Down

0 comments on commit 4b22c94

Please sign in to comment.