Add federation to ownership change
[oweals/peertube.git] / server / controllers / api / users / index.ts
index faba7e20847b9153d78f91fc54c87842a5417ce4..07edf3727117075bd9136382c53d7356d08b8c1e 100644 (file)
@@ -229,7 +229,7 @@ function getUser (req: express.Request, res: express.Response, next: express.Nex
 }
 
 async function autocompleteUsers (req: express.Request, res: express.Response, next: express.NextFunction) {
-  const resultList = await UserModel.autocomplete(req.query.search as string)
+  const resultList = await UserModel.autoComplete(req.query.search as string)
 
   return res.json(resultList)
 }