Fix territory unarchive schema validation
This commit is contained in:
parent
7aa0d8f430
commit
50e153df7c
@ -260,7 +260,7 @@ export default {
|
|||||||
|
|
||||||
const { name } = data
|
const { name } = data
|
||||||
|
|
||||||
await ssValidate(territorySchema, data, { models, me, sub: { name } })
|
await ssValidate(territorySchema, data, { models, me })
|
||||||
|
|
||||||
const oldSub = await models.sub.findUnique({ where: { name } })
|
const oldSub = await models.sub.findUnique({ where: { name } })
|
||||||
if (!oldSub) {
|
if (!oldSub) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user