Skip to content

Commit

Permalink
fix: lint/format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules authored and Jules committed Aug 6, 2024
1 parent bb23089 commit 565d9a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion front/components/data_source/RequestDataSourcesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import React, { useContext, useState } from "react";
import { SendNotificationsContext } from "@app/components/sparkle/Notification";
import { CONNECTOR_CONFIGURATIONS } from "@app/lib/connector_providers";
import logger from "@app/logger/logger";
import type { DataSourceIntegration } from "@app/pages/w/[wId]/builder/data-sources/managed";
import type { PostRequestAccessBody } from "@app/pages/api/w/[wId]/data_sources/request-access";
import type { DataSourceIntegration } from "@app/pages/w/[wId]/builder/data-sources/managed";

type RequestDataSourceProps = {
isOpen: boolean;
Expand Down
11 changes: 5 additions & 6 deletions front/pages/api/w/[wId]/data_sources/request-access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const PostRequestAccessBodySchema = t.type({
email: t.string,
emailMessage: t.string,
emailRequester: t.string,
dataSourceName: t.string
})
dataSourceName: t.string,
});

export type PostRequestAccessBody = t.TypeOf<
typeof PostRequestAccessBodySchema
Expand Down Expand Up @@ -50,9 +50,7 @@ async function handler(
});
}

const bodyValidation = PostRequestAccessBodySchema.decode(
req.body
);
const bodyValidation = PostRequestAccessBodySchema.decode(req.body);
if (isLeft(bodyValidation)) {
const pathError = reporter.formatValidationErrors(bodyValidation.left);

Expand All @@ -65,7 +63,8 @@ async function handler(
});
}

const { email, emailMessage, emailRequester, dataSourceName } = bodyValidation.right;
const { email, emailMessage, emailRequester, dataSourceName } =
bodyValidation.right;

const html = `<p>${emailRequester} has sent you a request regarding the connection ${dataSourceName}</p>
<p>Message:</p>
Expand Down

0 comments on commit 565d9a3

Please sign in to comment.