feat: add upload logic.

This commit is contained in:
2021-12-31 18:05:13 +08:00
parent 317aa006e3
commit 048c54e080
21 changed files with 317 additions and 49 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ Future<void> configureServer(Angel app) async {
allowCookie: false,
deserializer: (p) async => (UserQuery()..where!.id.equals(int.parse(p)))
.getOne(app.container!.make<orm.QueryExecutor>())
.then((value) => value.value),
.then((value) => value.isNotEmpty ? value.value : User(email: '')),
serializer: (p) => p.id ?? '',
);
await auth.configureServer(app);