mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-10 14:52:32 +00:00
fix: subdomain validation
This commit is contained in:
parent
4443aca2db
commit
b1af67b915
@ -18,8 +18,8 @@ routerAdd(
|
||||
let data = new DynamicModel({
|
||||
id: '',
|
||||
fields: {
|
||||
subdomain: null,
|
||||
maintenance: null,
|
||||
name: null,
|
||||
version: null,
|
||||
secrets: null,
|
||||
syncAdmin: null,
|
||||
@ -34,15 +34,15 @@ routerAdd(
|
||||
|
||||
const id = c.pathParam('id')
|
||||
const {
|
||||
fields: { maintenance, name, version, secrets, syncAdmin },
|
||||
fields: { subdomain, maintenance, version, secrets, syncAdmin },
|
||||
} = data
|
||||
|
||||
console.log(
|
||||
`***vars`,
|
||||
JSON.stringify({
|
||||
id,
|
||||
subdomain,
|
||||
maintenance,
|
||||
name,
|
||||
version,
|
||||
secrets,
|
||||
syncAdmin,
|
||||
@ -73,7 +73,7 @@ routerAdd(
|
||||
}
|
||||
|
||||
const sanitized = cleanObject({
|
||||
subdomain: name,
|
||||
subdomain,
|
||||
version,
|
||||
maintenance,
|
||||
secrets,
|
||||
|
Loading…
x
Reference in New Issue
Block a user