Skip to content

Commit

Permalink
fix: bad imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Jan 31, 2025
1 parent 78e7100 commit f0d1666
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/models/organizations/organizations.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import {
import {
addOrDeleteOrganizationRecordMutex,
processingSyncRegistriesTransactionMutex,
isDlStoreSynced,
} from '../../utils/model-utils';
import { isDlStoreSynced } from '../../utils/datalayer-utils';

class Organization extends Model {
static async getHomeOrg(includeAddress = true) {
Expand Down
8 changes: 0 additions & 8 deletions src/utils/data-loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,3 @@ export const serverAvailable = async (server, port) => {
}
}
};

export const isDlStoreSynced = (syncStatus) => {
if (syncStatus?.generation && syncStatus?.target_generation) {
return syncStatus.generation === syncStatus.target_generation;
}

return false;
};
8 changes: 8 additions & 0 deletions src/utils/datalayer-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,11 @@ export const getMirrorUrl = async () => {
return null;
}
};

export const isDlStoreSynced = (syncStatus) => {
if (syncStatus?.generation && syncStatus?.target_generation) {
return syncStatus.generation === syncStatus.target_generation;
}

return false;
};

0 comments on commit f0d1666

Please sign in to comment.