Skip to content

Commit 4b3c9aa

Browse files
committed
updating example with correct collection names
1 parent fdc0b4c commit 4b3c9aa

File tree

2 files changed

+5
-2
lines changed
  • examples/hr-hub/plugins/entities/Employee/conformance

2 files changed

+5
-2
lines changed

examples/hr-hub/plugins/entities/Employee/conformance/conform-acme-tech/collector/collector.sjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* @return - an array of ids or uris
77
*/
88
function collect(options) {
9-
return cts.uris(null, null, cts.collectionQuery('hr-json-dumps'));
9+
// return all URIs for the 'load-acme-tech' collection
10+
return cts.uris(null, null, cts.collectionQuery('load-acme-tech'));
1011
}
1112

1213
module.exports = {

examples/hr-hub/plugins/entities/Employee/conformance/conform-global-corp/collector/collector.sjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
* @return - an array of ids or uris
77
*/
88
function collect(options) {
9+
10+
// grab a list of the unique employee IDs out of the JSON data
911
var y = [];
10-
for (var x of fn.collection('hr-csv-dumps')) {
12+
for (var x of fn.collection('load-global-corp')) {
1113
var empid = x.root.content.emp_id;
1214
if (empid) {
1315
y.push(empid);

0 commit comments

Comments
 (0)