Skip to content

Commit

Permalink
Merge pull request #385 from TwoAbove/develop
Browse files Browse the repository at this point in the history
Removed ObjectID conversion
  • Loading branch information
TwoAbove committed Sep 8, 2024
2 parents c220c62 + 5ffd4b1 commit 2be8e85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/io/compute.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ export const handleCompute = (socket, io) => {
}

user =
(await User.findOne({ patreonId: config.userId })) ||
(await User.findOne({ sessionToken: new mongoose.Types.ObjectId(config.sessionToken) }));
(await User.findOne({ patreonId: config.userId })) || (await User.findOne({ sessionToken: config.sessionToken }));

if (!user) {
socket.emit("compute:unauthorized", config);
Expand Down

0 comments on commit 2be8e85

Please sign in to comment.