Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Add Loader.loadSchemaWithinEnvironment
Browse files Browse the repository at this point in the history
To allow non-destructive calls of loadSchema
  • Loading branch information
matjack1 committed Jun 10, 2020
1 parent e70ec67 commit 257b957
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/local/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ export default class Loader {
});
}

loadSchemaWithinEnvironment() {
return this.client
.get('/site', { include: 'item_types,item_types.fields' })
.then(site => {
this.siteId = site.data.id;
this.entitiesRepo.upsertEntities(site);
});
}

load() {
return Promise.all([
this.client.get('/site', { include: 'item_types,item_types.fields' }),
Expand Down

0 comments on commit 257b957

Please sign in to comment.