diff --git a/core/server/services/members/service.js b/core/server/services/members/service.js index c18b81713b..bc61b8f584 100644 --- a/core/server/services/members/service.js +++ b/core/server/services/members/service.js @@ -175,6 +175,15 @@ const membersService = { logging.error(err); }); } + + (async () => { + try { + const collection = await models.SingleUseToken.fetchAll(); + await collection.invokeThen('destroy'); + } catch (err) { + logging.error(err); + } + })(); }, contentGating: require('./content-gating'),