diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index b332219..25d82ff 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -33,7 +33,8 @@ AngelConfigurer configureServer(FileSystem fileSystem) { var executor = req.container!.make()!; var message = req.bodyAsMap['message'].toString(); var query = GreetingQuery()..values.message = message; - return await query.insert(executor); + var optional = await query.insert(executor); + return optional.value; } });