diff --git a/services/web/app/src/Features/Subscription/TeamInvitesHandler.js b/services/web/app/src/Features/Subscription/TeamInvitesHandler.js index 913a1448c5..301a2b0023 100644 --- a/services/web/app/src/Features/Subscription/TeamInvitesHandler.js +++ b/services/web/app/src/Features/Subscription/TeamInvitesHandler.js @@ -1,5 +1,4 @@ const logger = require('@overleaf/logger') -const OError = require('@overleaf/o-error') const crypto = require('crypto') const settings = require('@overleaf/settings') @@ -154,10 +153,8 @@ async function _createInvite(subscription, email, inviter) { admin = await SubscriptionLocator.promises.getAdminEmailAndName( subscription._id ) - } catch (error) { - logger.error( - OError.tag(error, 'error getting subscription admin email and name') - ) + } catch (err) { + logger.error({ err }, 'error getting subscription admin email and name') } const user = await UserGetter.promises.getUserByAnyEmail(email)