Skip to content

Commit 2e2132d

Browse files
committed
Ignore old sync tokens
1 parent 6a05d03 commit 2e2132d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

api/routes/profile.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,15 @@ export const profileHandler = asyncHandler(async (req, res) => {
7272
return;
7373
}
7474

75-
const syncTokens = extractSyncToken(
75+
let syncTokens = extractSyncToken(
7676
typeof req.query.sync === 'string' ? req.query.sync : undefined,
7777
);
7878

79+
// Ignore old sync tokens
80+
if (syncTokens && (syncTokens.all || syncTokens.profile)) {
81+
syncTokens = undefined;
82+
}
83+
7984
let response: ProfileResponse | undefined;
8085
try {
8186
response = await statelyProfile(

0 commit comments

Comments
 (0)