Skip to content

Commit

Permalink
fix(session: mysql): state json parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ephrimlawrence committed Aug 8, 2024
1 parent f0582f1 commit c0845b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sessions/mysql.session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class MySQLSession extends BaseSession {
if (resp.length === 0) return undefined;

const val = typeof resp[0] === "string" ? JSON.parse(resp[0]) : resp[0];
this.data[sessionId] = JSON.parse(val.data);
this.data[sessionId] = val.data;
return State.fromJSON(val.state);
}

Expand Down

0 comments on commit c0845b7

Please sign in to comment.