File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 10
10
11
11
## Version History
12
12
13
+ ### v7.2.0
14
+
15
+ - :rocket : Provide empty incoming-output schema if incoming is not yet configured
16
+
13
17
### v7.1.0
14
18
15
19
- :rocket : Prelim sketch of outgoing data
Original file line number Diff line number Diff line change @@ -38,21 +38,26 @@ export default class Task extends ETL {
38
38
} else {
39
39
const task = new Task ( ) ;
40
40
const layer = await task . fetchLayer ( ) ;
41
- const env = await this . env ( Input ) ;
42
41
43
- if ( ! env . ARCGIS_URL ) {
42
+ if ( ! layer . incoming ) {
44
43
return Type . Object ( { } ) ;
45
44
} else {
46
- const config : EsriDumpConfigInput = {
47
- approach : EsriDumpConfigApproach . ITER ,
48
- headers : { } ,
49
- params : { }
50
- } ;
45
+ const env = await this . env ( Input ) ;
51
46
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
+ } ;
54
55
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
+ }
56
61
}
57
62
}
58
63
} else {
You can’t perform that action at this time.
0 commit comments