From 65f62b75c00d6d5daf51779cc305fac21b204cf4 Mon Sep 17 00:00:00 2001 From: outersky Date: Fri, 4 Feb 2022 10:26:20 +0800 Subject: [PATCH] fix: Present should be Message Present<*> is not supported now by default --- lib/src/routes/routes.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } });