From c1bf436c13b4d538d3a57d37211fe7258e7e8879 Mon Sep 17 00:00:00 2001 From: Emmanuel Quentin Date: Mon, 2 Oct 2023 12:54:34 -0400 Subject: [PATCH] Add engineUuid in Session.toJSON to be backward compatible --- src/domain/Session.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/domain/Session.ts b/src/domain/Session.ts index ae3e5597..f124c0f1 100644 --- a/src/domain/Session.ts +++ b/src/domain/Session.ts @@ -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, + }; + } }