From bdfcb0d4578335af03d68ffd8e7196b86992222f Mon Sep 17 00:00:00 2001 From: thosakwe Date: Mon, 24 Apr 2017 23:30:25 -0400 Subject: [PATCH] No checked mode --- lib/src/routes/controllers/auth.dart | 2 +- lib/src/services/user.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.