Skip to content

Commit

Permalink
Add engineUuid in Session.toJSON to be backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
manuquentin committed Oct 2, 2023
1 parent 0d9e29e commit c1bf436
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/domain/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,11 @@ export default class Session {
return this.stackUuid;
}

toJSON() {
return {
...this,
// Added `engineUuid` because of the getter, it won't be included in `JSON.stringify()` methods.
engineUuid: this.engineUuid,
};
}
}

0 comments on commit c1bf436

Please sign in to comment.