Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrf1 committed Dec 17, 2024
1 parent 856a343 commit 423133a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/cancel-reminders/lambda/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ export const run = async (

const cancellationRequest: unknown = JSON.parse(event.body ?? '');

const parseResult = cancellationRequestSchema.safeParse(
cancellationRequest,
);
const parseResult =
cancellationRequestSchema.safeParse(cancellationRequest);

if (parseResult.success) {
const { reminderCode } = parseResult.data;
Expand Down
2 changes: 0 additions & 2 deletions src/cancel-reminders/lambda/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ import { z } from 'zod';
export const cancellationRequestSchema = z.object({
reminderCode: z.string(),
});

type CancellationRequest = z.infer<typeof cancellationRequestSchema>;
6 changes: 4 additions & 2 deletions src/create-reminder-signup/lambda/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ import { getOrCreateIdentityIdByEmail } from '../lib/identity';
import {
BaseSignupRequest,
oneOffSignupFromRequest,
OneOffSignupRequest, oneOffSignupRequestSchema,
OneOffSignupRequest,
oneOffSignupRequestSchema,
recurringSignupFromRequest,
RecurringSignupRequest, recurringSignupRequestSchema,
RecurringSignupRequest,
recurringSignupRequestSchema,
} from './models';

const ssm: SSM = new AWS.SSM({ region: 'eu-west-1' });
Expand Down
5 changes: 2 additions & 3 deletions src/reactivate-recurring-reminder/lambda/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ export const run = async (

const reactivationRequest: unknown = JSON.parse(event.body ?? '');

const parseResult = reactivationRequestSchema.safeParse(
reactivationRequest,
);
const parseResult =
reactivationRequestSchema.safeParse(reactivationRequest);
if (parseResult.success) {
const { reminderCode } = parseResult.data;

Expand Down

0 comments on commit 423133a

Please sign in to comment.