Skip to content

Commit c4a2387

Browse files
committed
Remove unnecessary fields in persistentRoom store
If they prove to be necessary, feel free to revert this commit.
1 parent c1f60db commit c4a2387

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

collab/verify/roomMappings.go

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,9 @@ func VerifyRoomAndMoveToPersist(
4444

4545
roomMappings.Conn.Del(ctx, matchHash);
4646
persistentRoom := map[string]interface{}{
47-
"roomId": roomID,
48-
"otherUser": data["otherUser"],
49-
"requestTime": data["requestTime"],
50-
51-
"title": data["title"],
52-
"titleSlug": data["titleSlug"],
53-
"difficulty": data["difficulty"],
54-
"topicTags": data["topicTags"],
55-
"content": data["content"],
56-
"schemas": data["schemas"],
57-
"id": data["id"],
47+
"roomId": roomID,
48+
"otherUser": data["otherUser"],
49+
"requestTime": data["requestTime"],
5850
}
5951

6052
// this always overrides the persistent room

0 commit comments

Comments
 (0)