Add pod list endpoint with pagination, sort...
[oweals/peertube.git] / server / tests / utils / users.ts
index 1c3f6826ee398a7204b87cf90e689fbcdb9ea329..e5f3eb1b3a2724e65894b74c11f9fc5bfa803ca6 100644 (file)
@@ -118,7 +118,7 @@ function updateUser (url: string, userId: number, accessToken: string, email: st
   const path = '/api/v1/users/' + userId
 
   const toSend = {}
-  if (email !== undefined && email !== null) toSend['password'] = email
+  if (email !== undefined && email !== null) toSend['email'] = email
   if (videoQuota !== undefined && videoQuota !== null) toSend['videoQuota'] = videoQuota
 
   return request(url)