Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 78c4586

Browse files
committed
Merge pull request #144 from jateeter/master
Hooked RetailCustomer export back in.
2 parents 571cfb4 + 1458bbb commit 78c4586

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/energyos/espi/common/models/atom/ContentType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ public void setResource(IdentifiedObject resource) {
471471
setAuthorization((Authorization) resource);
472472
} else if (resource instanceof Subscription) {
473473
setSubscription((Subscription) resource);
474+
} else if (resource instanceof RetailCustomer) {
475+
setRetailCustomer((RetailCustomer) resource);
474476
}
475477
}
476478

src/main/java/org/energyos/espi/common/service/impl/ExportServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ private EntryType findEntryTypeXPath(Long subscriptionId, Long id1, Long id2, Lo
10851085
// correct
10861086
if (id2 != 0) {
10871087
// we have a request for (at least) a usagePoint
1088-
// so use the relivant retail customer Id to get the ID collection
1088+
// so use the relevant retail customer Id to get the ID collection
10891089
UsagePoint usagePoint = resourceService.findById(id2, UsagePoint.class);
10901090
id1 = usagePoint.getRetailCustomer().getId();
10911091
}

0 commit comments

Comments
 (0)