Merge pull request #1502 from stackernews/fix-unarchive
Fix territory unarchive schema validation
This commit is contained in:
commit
5d5bc22e3d
|
@ -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