Skip to content

Commit ab5a525

Browse files
committed
fix: imports cleanup
1 parent 1fe1515 commit ab5a525

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/handlers/disco.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { DISCO_PISCINE_AI_FUNDA_PROJECTS_ORDER, DISCO_PISCINE_AI_INTER_PROJECTS_
33
import { getPiscineProjects, getAllDiscoPiscines, getTimeSpentBehindComputer, isDiscoPiscineDropout } from '../utils';
44
import { piscineCache } from './cache';
55
import { SYNC_INTERVAL } from '../intra/base';
6-
import { DISCO_PISCINE_CURSUS_IDS } from '../intra/cursus';
76

87
export interface DiscoPiscineLogTimes {
98
dayOne: number;

src/routes/users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Express } from 'express';
22
import passport from 'passport';
33
import { PrismaClient } from '@prisma/client';
44
import { Cohort, getAllCohorts, getAllDiscoPiscines, getAllCPiscines, getLatestDiscoPiscine, getLatestCPiscine, numberToMonth, shortenDiscoPiscineCursusName } from '../utils';
5-
import { DISCO_PISCINE_CURSUS_IDS, PISCINE_CURSUS_IDS, REGULAR_CURSUS_IDS } from '../intra/cursus';
5+
import { PISCINE_CURSUS_IDS, REGULAR_CURSUS_IDS } from '../intra/cursus';
66

77
export const setupUsersRoutes = function(app: Express, prisma: PrismaClient): void {
88
app.get('/users', passport.authenticate('session'), (req, res) => {

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { INTRA_PISCINE_ASSISTANT_GROUP_ID } from './env';
33
import { DISCO_PISCINE_CURSUS_IDS, PISCINE_CURSUS_IDS } from "./intra/cursus";
44
import { IntraUser } from "./intra/oauth";
55
import NodeCache from "node-cache";
6+
67
const cursusCache = new NodeCache();
78
const PISCINE_MIN_USER_COUNT = 40;
89
const DISCO_PISCINE_MIN_USER_COUNT = 5;

0 commit comments

Comments
 (0)