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.
2 parents 4c8a08e + 0721656 commit b80ee04Copy full SHA for b80ee04
src/services/AuthenticationService.ts
@@ -121,10 +121,12 @@ class AuthenticationService {
121
.where({ linked_email: email.toLowerCase() })
122
.first();
123
124
- if (linkedEmail) {
125
- return linkedEmail?.active ?? false;
+ if (linkedEmail?.active) {
+ console.log('Found active subscription for linked email:', linkedEmail);
126
+ return true;
127
}
128
129
+ console.log('Checking subscriber status for email:', email);
130
const result = await db('subscriptions')
131
.select('active')
132
.where({ email: email.toLowerCase() })
0 commit comments