Skip to content

Commit

Permalink
Added missing new
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoAbove committed Sep 8, 2024
1 parent aaa134f commit 946fda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/io/compute.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const handleCompute = (socket, io) => {

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

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

0 comments on commit 946fda6

Please sign in to comment.