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