fix: Present<Message> should be Message
Present<*> is not supported now by default
This commit is contained in:
parent
3b67c9670d
commit
65f62b75c0
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue