Skip to content

Commit 40b10c2

Browse files
committed
update session use sessionId
1 parent ae92435 commit 40b10c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/server/src/accounts-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export class AccountsServer {
347347
throw new AccountsError('User not found', { id: session.userId });
348348
}
349349
const tokens = this.createTokens(sessionToken);
350-
await this.db.updateSession(sessionToken, { ip, userAgent });
350+
await this.db.updateSession(session.sessionId, { ip, userAgent });
351351

352352
const result = {
353353
sessionId: session.sessionId,

packages/server/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export interface DBInterface {
120120
extraData?: object
121121
): Promise<string>;
122122
updateSession(
123-
token: string,
123+
sessionId: string,
124124
connection: ConnectionInformationsType
125125
): Promise<void>;
126126
invalidateSession(sessionId: string): Promise<void>;

0 commit comments

Comments
 (0)