diff --git a/server/io/compute.mjs b/server/io/compute.mjs index 19e873e..3ff9c72 100644 --- a/server/io/compute.mjs +++ b/server/io/compute.mjs @@ -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);