Skip to content

Commit b80ee04

Browse files
authored
Merge pull request #1755 from 2anki/chore/checkx
chore: log more
2 parents 4c8a08e + 0721656 commit b80ee04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/services/AuthenticationService.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ class AuthenticationService {
121121
.where({ linked_email: email.toLowerCase() })
122122
.first();
123123

124-
if (linkedEmail) {
125-
return linkedEmail?.active ?? false;
124+
if (linkedEmail?.active) {
125+
console.log('Found active subscription for linked email:', linkedEmail);
126+
return true;
126127
}
127128

129+
console.log('Checking subscriber status for email:', email);
128130
const result = await db('subscriptions')
129131
.select('active')
130132
.where({ email: email.toLowerCase() })

0 commit comments

Comments
 (0)