We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b6ab8e commit 5bd2d69Copy full SHA for 5bd2d69
api/src/accounting.ts
@@ -134,7 +134,8 @@ export async function recordSubscription(
134
body.includes("Subscription limit of 8 reached for this user. Cannot create more.")
135
) {
136
return recordSubscription(
137
- email + `.extra-${new Date().getFullYear().toString().slice(2)}`, // .extra-24 (36 char limit on emails!)
+ email.replace(/\.([^.@])+$/, `.${new Date().getFullYear().toString().slice(2)}`),
138
+ // replace (for example) .com with .24 (36 char limit on emails!)
139
subscription,
140
traits,
141
retries
0 commit comments