Skip to content

Commit

Permalink
Update of data type for datapoint versions earlier than 20240309 only…
Browse files Browse the repository at this point in the history
…. Delete tree states with variable data length during update.
  • Loading branch information
MyHomeMyData committed Mar 12, 2024
1 parent 9801d27 commit 026244b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class E3oncan extends utils.Adapter {
const didStateName = await devDids.getDidStr(did)+'_'+await devDids.didsDictDevCom[did].id;
if (this.udsDidsVarLength.includes(Number(did))) {
// Did with variable length has to be deleted to avoid type confilct, when length gets larger in future
this.log.silly(' > Delete datapoint '+didStateName+' to secure change of data type');
this.log.silly(' > Delete datapoint '+didStateName+' to secure change of data type');
await this.delObjectAsync(this.namespace+'.'+dev.devStateName+'.tree.'+didStateName, { recursive: true });
}
const raw = await devDids.getObjectVal(this, dev.devStateName+'.raw.'+didStateName);
Expand Down

0 comments on commit 026244b

Please sign in to comment.