feat: provider name

This commit is contained in:
Nevo David 2024-07-13 19:13:23 +07:00
parent bed6f25db8
commit cf37c9d9af
4 changed files with 5 additions and 2 deletions

View File

@ -51,7 +51,6 @@ import { AddPostButton } from '@gitroom/frontend/components/launches/add.post.bu
import { useStateCallback } from '@gitroom/react/helpers/use.state.callback';
import { CopilotPopup } from '@copilotkit/react-ui';
import { useUser } from '@gitroom/frontend/components/layout/user.context';
import { capitalize } from 'lodash';
export const AddEditModal: FC<{
date: dayjs.Dayjs;
@ -374,7 +373,7 @@ export const AddEditModal: FC<{
{!existingData.integration && (
<PickPlatforms
integrations={integrations}
integrations={integrations.filter(f => !f.disabled)}
selectedIntegrations={[]}
singleSelect={false}
onChange={setSelectedIntegrations}

View File

@ -32,6 +32,7 @@ const CalendarContext = createContext({
export interface Integrations {
name: string;
id: string;
disabled?: boolean;
inBetweenSteps: boolean;
identifier: string;
type: string;

View File

@ -52,6 +52,7 @@ export class UsersRepository {
return this._user.model.user.findFirst({
where: {
email,
providerName: Provider.LOCAL,
},
include: {
picture: {

View File

@ -16,5 +16,7 @@ export class EmailService {
subject,
html,
});
console.log(sends);
}
}