Pārlūkot izejas kodu

fix: Unable to change casing of username

Owen Diffey 2 gadi atpakaļ
vecāks
revīzija
0efaee0cf6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      backend/logic/actions/users.js

+ 1 - 1
backend/logic/actions/users.js

@@ -2001,7 +2001,7 @@ export default {
 
 				(user, next) => {
 					if (!user) return next();
-					if (user._id === updatingUserId) return next();
+					if (user._id.toString() === updatingUserId) return next();
 					return next("That username is already in use.");
 				},