core: fix domain_create.avatar

This commit is contained in:
undefined committed 2021-05-12 23:33:55 +08:00
1 parent 30cad9b80e
commit a764211eee
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.25.12",
"version": "2.25.13",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+1 -1
View File
@@ -319,7 +319,7 @@ class HomeDomainCreateHandler extends Handler {
@param('id', Types.Name)
@param('name', Types.Title)
@param('bulletin', Types.Content)
@param('avatar', Types.Content, true, isEmail)
@param('avatar', Types.Content, true)
// eslint-disable-next-line @typescript-eslint/no-shadow
async post(_: string, id: string, name: string, bulletin: string, avatar: string) {
const doc = await domain.get(id);