diff --git a/lib/src/routes/controllers/auth.dart b/lib/src/routes/controllers/auth.dart index b22be7e8..1139429f 100644 --- a/lib/src/routes/controllers/auth.dart +++ b/lib/src/routes/controllers/auth.dart @@ -18,7 +18,7 @@ class AuthController extends Controller { /// Attempt to log a user in LocalAuthVerifier localVerifier(Service userService) { return (String username, String password) async { - List users = await userService.index({ + Iterable users = await userService.index({ 'query': {'username': username} }); diff --git a/lib/src/services/user.dart b/lib/src/services/user.dart index 00b3c022..b5927ab0 100644 --- a/lib/src/services/user.dart +++ b/lib/src/services/user.dart @@ -12,7 +12,7 @@ configureServer(Db db) { app.use('/api/users', new TypedService(new MongoService(db.collection('users')))); - HookedService service = app.service('api/users'); + var service = app.service('api/users') as HookedService; // Prevent clients from doing anything to the `users` service, // apart from reading a single user's data.