feat: provider name
This commit is contained in:
parent
bed6f25db8
commit
cf37c9d9af
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ const CalendarContext = createContext({
|
|||
export interface Integrations {
|
||||
name: string;
|
||||
id: string;
|
||||
disabled?: boolean;
|
||||
inBetweenSteps: boolean;
|
||||
identifier: string;
|
||||
type: string;
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ export class UsersRepository {
|
|||
return this._user.model.user.findFirst({
|
||||
where: {
|
||||
email,
|
||||
providerName: Provider.LOCAL,
|
||||
},
|
||||
include: {
|
||||
picture: {
|
||||
|
|
|
|||
|
|
@ -16,5 +16,7 @@ export class EmailService {
|
|||
subject,
|
||||
html,
|
||||
});
|
||||
|
||||
console.log(sends);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue