diff --git a/src/sessions/mysql.session.ts b/src/sessions/mysql.session.ts index d5c2d8d..1dd8b8a 100644 --- a/src/sessions/mysql.session.ts +++ b/src/sessions/mysql.session.ts @@ -133,7 +133,7 @@ export class MySQLSession extends BaseSession { async set(sessionId: string, key: string, value: any): Promise { await this.db.query( `UPDATE ${this.tableName} SET data = JSON_SET(data, '$.${key}', ?) WHERE session_id = ? ${this.softDeleteQuery}`, - [JSON.stringify(value), sessionId], + [value, sessionId], ); return await this.get(sessionId, key, value); }