Skip to content

Commit

Permalink
Cont
Browse files Browse the repository at this point in the history
  • Loading branch information
lizkenyon committed Mar 27, 2024
1 parent 93545f0 commit 743d31b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ describe('MySQLSessionStorage', () => {
await storage.disconnect();

const loadedSession = await storage.loadSession(sessionId);
console.log(loadedSession, 'loadedSession');
console.log(session, 'Session');
expect(loadedSession).toEqual(session);
await storage.disconnect();

Expand Down
2 changes: 1 addition & 1 deletion packages/shopify-app-session-storage-prisma/src/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class PrismaSessionStorage<T extends PrismaClient>
sessionParams.emailVerified = String(row.emailVerified);
}

return Session.fromPropertyArray(Object.entries(sessionParams));
return Session.fromPropertyArray(Object.entries(sessionParams), true);
}

private getSessionTable(): T['session'] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export function batteryOfTests(storageFactory: () => Promise<SessionStorage>) {
await expect(storage.storeSession(session)).resolves.toBeTruthy();
const storedSession = await storage.loadSession(sessionId);

console.log(session, 'session');
console.log(storedSession, 'storedSession');
expect(session.equals(storedSession)).toBeTruthy();

expect(storedSession?.isActive(testScopes)).toBeTruthy();
Expand Down

0 comments on commit 743d31b

Please sign in to comment.