Skip to content

Commit a141243

Browse files
committed
Update CHANGELOG
1 parent 75c2d3a commit a141243

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
## Version History
1212

13+
### v7.2.0
14+
15+
- :rocket: Provide empty incoming-output schema if incoming is not yet configured
16+
1317
### v7.1.0
1418

1519
- :rocket: Prelim sketch of outgoing data

task.ts

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,26 @@ export default class Task extends ETL {
3838
} else {
3939
const task = new Task();
4040
const layer = await task.fetchLayer();
41-
const env = await this.env(Input);
4241

43-
if (!env.ARCGIS_URL) {
42+
if (!layer.incoming) {
4443
return Type.Object({});
4544
} else {
46-
const config: EsriDumpConfigInput = {
47-
approach: EsriDumpConfigApproach.ITER,
48-
headers: {},
49-
params: {}
50-
};
45+
const env = await this.env(Input);
5146

52-
const dumper = await task.dumper(config, layer);
53-
const schema = await dumper.schema();
47+
if (!env.ARCGIS_URL) {
48+
return Type.Object({});
49+
} else {
50+
const config: EsriDumpConfigInput = {
51+
approach: EsriDumpConfigApproach.ITER,
52+
headers: {},
53+
params: {}
54+
};
5455

55-
return schema as TSchema;
56+
const dumper = await task.dumper(config, layer);
57+
const schema = await dumper.schema();
58+
59+
return schema as TSchema;
60+
}
5661
}
5762
}
5863
} else {

0 commit comments

Comments
 (0)