Skip to content

Commit

Permalink
Dont Create Calendar for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Jan 23, 2025
1 parent 8482509 commit 7f01c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/backend/src/services/teams.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { isUnderWordCount } from 'shared';
import { removeUsersFromList } from '../utils/teams.utils';
import { getTeamQueryArgs } from '../prisma-query-args/teams.query-args';
import { uploadFile } from '../utils/google-integration.utils';
import { createCalendar } from '../utils/google-integration.utils';
import { teamTypeTransformer } from '../transformers/team-types.transformer';

export default class TeamsService {
Expand Down Expand Up @@ -418,14 +417,14 @@ export default class TeamsService {
throw new HttpException(400, 'Cannot create a teamType with a name that already exists');
}

const teamTypeCalendarId = await createCalendar(name);
// const teamTypeCalendarId = await createCalendar(name); TODO Fix unauthorized_client error this is throwing
const teamType = await prisma.team_Type.create({
data: {
name,
iconName,
description,
organizationId: organization.organizationId,
calendarId: teamTypeCalendarId
calendarId: null
}
});

Expand Down
2 changes: 0 additions & 2 deletions src/frontend/src/pages/LoginPage/LoginDev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ const LoginDev: React.FC<LoginDevProps> = ({ devSetUser, devFormSubmit }) => {
))}
</Select>
</FormControl>
<label htmlFor="anId">label</label>
<input id="anId" type='date' value="2011-11-22"></input>
</form>
);
};
Expand Down

0 comments on commit 7f01c90

Please sign in to comment.