Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
samwisekind committed May 8, 2024
1 parent 9c5db42 commit 7437335
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/api/report-sighting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import type { LogtailAPIRequest } from '@logtail/next';

import { withLogtail } from '@logtail/next';

import { log } from '@logtail/next';

import joi from 'joi';
import nodemailer from 'nodemailer';

Expand Down Expand Up @@ -95,7 +93,7 @@ const handler = async (
html: Object.entries(body).map(([key, value]) => `<b>${key.toUpperCase()}:</b> ${value}`).join('<br />'),
});
} catch (error) {
log.error('Unable to send email:', { error });
req.log.error('Unable to send email:', { error });

return res.status(500).json({
success: false,
Expand Down

0 comments on commit 7437335

Please sign in to comment.