dochub-sdk 0.1.178 → 0.1.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,13 +132,13 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
|
|
132
132
|
*/
|
133
133
|
async doRefresh(): Promise<void> {
|
134
134
|
try {
|
135
|
+
if (!this.profile?.source) throw new DocHubError('Document must have field "source" in profile!');
|
135
136
|
this.isPending = true;
|
136
137
|
await this.refreshFileFollow();
|
137
138
|
const template = (this.getType() === DocHubDocumentType.content) && this.profile?.template
|
138
139
|
&& (await DocHub.dataLake.pullFile(
|
139
140
|
DocHub.dataLake.resolveURI(this.followURI || this.profile?.template, this.profile?.template)
|
140
141
|
));
|
141
|
-
if (!this.profile?.source) throw new DocHubError('Document must have field "source" in profile!');
|
142
142
|
let result: AxiosResponse = (template || (this.getType() === DocHubDocumentType.data))
|
143
143
|
&& { data: await DocHub.dataLake.resolveDataSetProfile(this.profile, {
|
144
144
|
params: this.params,
|
@@ -157,7 +157,7 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
|
|
157
157
|
return;
|
158
158
|
}
|
159
159
|
// Если все в порядке, вызываем процессинг данных
|
160
|
-
result = this.processingData(result.data);
|
160
|
+
result.data = this.processingData(result.data);
|
161
161
|
}
|
162
162
|
// Транслируем по шаблону
|
163
163
|
if (template) {
|