Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cokwong committed May 1, 2024
1 parent 70addf5 commit d42ab4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/routes/v1/rest/studyRooms/lib.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TimeSlot, StudyLocation } from "@peterportal-api/types";
import { studyLocations } from "libs/uc-irvine-lib/src/spaces";
import { getStudySpaces } from "libs/uc-irvine-lib/src/spaces";
import { TimeSlot, StudyLocation } from "packages/types";
import { studyRooms } from "virtual:studyRooms";

/**
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/study-room-scraper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"devDependencies": {
"@peterportal-api/types": "workspace:^",
"esbuild": "0.19.11"
"esbuild": "0.20.1"
}
}
4 changes: 2 additions & 2 deletions tools/study-room-scraper/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PrismaClient } from "@libs/db";
import type { StudyLocation } from "@peterportal-api/types";
import type { StudyLocation, StudyRoom } from "@peterportal-api/types";

import { scrapeStudyLocations } from "./study-room-scraper";

Expand All @@ -14,7 +14,7 @@ async function main() {
lid: location.lid,
name: location.name,
rooms: {
create: location.rooms.map((room) => ({
create: location.rooms.map((room: StudyRoom) => ({
...room,
})),
},
Expand Down

0 comments on commit d42ab4b

Please sign in to comment.