Fix territory unarchive schema validation
This commit is contained in:
parent
7aa0d8f430
commit
50e153df7c
|
@ -260,7 +260,7 @@ export default {
|
|||
|
||||
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 } })
|
||||
if (!oldSub) {
|
||||
|
|
Loading…
Reference in New Issue