fix: update stale 'Postmark' comment to 'SMTP' in server.ts
The subscription error fallback comment still referenced Postmark after the mailer migration. Update it to reflect the SMTP mailer.
This commit is contained in:
parent
49b7b0d83b
commit
0eca031890
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ addRoute('post', '/subscription/email', async (req: Request, res: Response) => {
|
||||||
const result = await registerSubscription({ pubkey, email, frequency })
|
const result = await registerSubscription({ pubkey, email, frequency })
|
||||||
res.json(result)
|
res.json(result)
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
// If the error is just Postmark failing, the subscription was still created
|
// If the error is just SMTP failing, the subscription was still created
|
||||||
// Look up the actual subscription key from the DB
|
// Look up the actual subscription key from the DB
|
||||||
const sub = await getSubscriptionByPubkey(pubkey)
|
const sub = await getSubscriptionByPubkey(pubkey)
|
||||||
if (sub) {
|
if (sub) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue