Explorar o código

fix: Unable to change casing of username

Owen Diffey %!s(int64=2) %!d(string=hai) anos
pai
achega
0efaee0cf6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.");
 				},