fix: Present<Message> should be Message

Present<*> is not supported now by default
This commit is contained in:
outersky 2022-02-04 10:26:20 +08:00 committed by GitHub
parent 3b67c9670d
commit 65f62b75c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,8 @@ AngelConfigurer configureServer(FileSystem fileSystem) {
var executor = req.container!.make<QueryExecutor>()!;
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;
}
});