Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3389065
D9872.id33188.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9872.id33188.diff
View Options
diff --git a/keyserver/src/session/cookies.js b/keyserver/src/session/cookies.js
--- a/keyserver/src/session/cookies.js
+++ b/keyserver/src/session/cookies.js
@@ -22,7 +22,6 @@
import type { SIWESocialProof } from 'lib/types/siwe-types.js';
import type { InitialClientSocketMessage } from 'lib/types/socket-types.js';
import type { UserInfo } from 'lib/types/user-types.js';
-import { values } from 'lib/utils/objects.js';
import {
isBcryptHash,
@@ -573,7 +572,7 @@
result: Object,
) {
let threadInfos = {},
- userInfos = {};
+ userInfos: $ReadOnlyArray<UserInfo> = [];
if (result.cookieChange) {
({ threadInfos, userInfos } = result.cookieChange);
}
@@ -582,7 +581,7 @@
sessionChange = ({
cookieInvalidated: true,
threadInfos,
- userInfos: (values(userInfos).map(a => a): UserInfo[]),
+ userInfos,
currentUserInfo: {
anonymous: true,
},
@@ -591,7 +590,7 @@
sessionChange = ({
cookieInvalidated: false,
threadInfos,
- userInfos: (values(userInfos).map(a => a): UserInfo[]),
+ userInfos,
}: ServerSessionChange);
}
if (viewer.cookieSource === cookieSources.BODY) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 5:23 PM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2601763
Default Alt Text
D9872.id33188.diff (1 KB)
Attached To
Mode
D9872: [Flow202][keyserver][skip-ci] [23/x] Address type errors in addSessionChangeInfoToResult
Attached
Detach File
Event Timeline
Log In to Comment