mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: fix domain_create.avatar
This commit is contained in:
1 parent
30cad9b80e
commit
a764211eee
2 files changed
+2
-2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user