mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +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",
|
"name": "hydrooj",
|
||||||
"version": "2.25.12",
|
"version": "2.25.13",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ class HomeDomainCreateHandler extends Handler {
|
|||||||
@param('id', Types.Name)
|
@param('id', Types.Name)
|
||||||
@param('name', Types.Title)
|
@param('name', Types.Title)
|
||||||
@param('bulletin', Types.Content)
|
@param('bulletin', Types.Content)
|
||||||
@param('avatar', Types.Content, true, isEmail)
|
@param('avatar', Types.Content, true)
|
||||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||||
async post(_: string, id: string, name: string, bulletin: string, avatar: string) {
|
async post(_: string, id: string, name: string, bulletin: string, avatar: string) {
|
||||||
const doc = await domain.get(id);
|
const doc = await domain.get(id);
|
||||||
|
|||||||
Reference in new issue
Block a user