Skip to content

Commit

Permalink
fix: app update use domino W-10809399 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
reidaelliott authored Apr 5, 2022
1 parent 1ccee3a commit 0373e13
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/lib/analytics/app/folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,16 @@ export default class Folder {
}

public async update(folderid: string, templateid: string): Promise<string | undefined> {
const body = JSON.stringify({ templateSourceId: templateid, templateOptions: { appAction: 'Upgrade' } });
let body = JSON.stringify({ templateSourceId: templateid, templateOptions: { appAction: 'Upgrade' } });
if (this.serverVersion >= 55.0) {
body = JSON.stringify({
templateSourceId: templateid,
templateOptions: {
appAction: 'Upgrade',
dynamicOptions: { productionType: 'ATF_3_0', runtimeLogEntryLevel: 'Warning' }
}
});
}
const wtUrl = this.foldersUrl + encodeURIComponent(folderid);
const response = await connectRequest<AppFolder>(this.connection, {
method: 'PUT',
Expand Down

0 comments on commit 0373e13

Please sign in to comment.