Skip to content

Commit

Permalink
removed broken code from tartanhacks
Browse files Browse the repository at this point in the history
  • Loading branch information
pm3512 committed Mar 12, 2024
1 parent 5181ce5 commit f241bd9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/controllers/CheckInController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {

import Project from "../models/Project";
import { findUserTeam } from "./TeamController";
import axios from "axios";

export const recalculatePoints = async (
req: Request,
Expand Down Expand Up @@ -277,18 +276,6 @@ export const checkInUser = async (
await checkIn.save();
await profile.save();

if (item._id.equals(process.env.EXPO_EVENT_ID)) {
// checking into judging expo
const team = await findUserTeam(user._id);
const project = await Project.findOne({ team: team._id });
const judgingUrl = process.env.JUDGING_URL;
axios.put(`${judgingUrl}/checkin?helixProjectId=${project._id}`, {
headers: {
authorization: process.env.JUDGING_TOKEN,
},
});
}

const json = checkIn.toJSON();
res.json(json);
} catch (err) {
Expand Down

0 comments on commit f241bd9

Please sign in to comment.