Skip to content

Commit

Permalink
fix(session: mysql): query bug when querying session data
Browse files Browse the repository at this point in the history
  • Loading branch information
ephrimlawrence committed Feb 29, 2024
1 parent 6798888 commit 9dd236f
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 @@ -153,7 +153,7 @@ export class MySQLSession extends BaseSession {
return defaultValue;
}

return (JSON.parse(val)[key] || defaultValue) as T;
return (val[key] || defaultValue) as T;
}

async getAll<T>(sessionId: string): Promise<T | undefined> {
Expand Down

0 comments on commit 9dd236f

Please sign in to comment.