Skip to content

Commit 0ad0b33

Browse files
committed
don't delete the domain if resuming from HOLD
1 parent 093910b commit 0ad0b33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/resolvers/domain.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ export default {
7272
if (existing) {
7373
// delete any existing domain verification job left
7474
await cleanDomainVerificationJobs(existing, tx)
75-
// delete the domain
76-
await tx.domain.delete({ where: { subName } })
75+
// delete the domain if we're not resuming from HOLD
76+
if (existing.status !== 'HOLD') {
77+
await tx.domain.delete({ where: { subName } })
78+
}
7779
}
7880

7981
const domain = await tx.domain.create({

0 commit comments

Comments
 (0)