@@ -11,14 +11,14 @@ import {
1111} from "mongodb" ;
1212import { Logger } from "@core/logger/winston.logger" ;
1313import {
14- CompassCalendar ,
15- Schema_CalendarList as Schema_Calendar ,
14+ Schema_CalendarList as Schema_CalList ,
15+ Schema_Calendar ,
1616} from "@core/types/calendar.types" ;
1717import { Schema_Event } from "@core/types/event.types" ;
1818import { Schema_Sync } from "@core/types/sync.types" ;
1919import { Schema_User } from "@core/types/user.types" ;
2020import { Schema_Waitlist } from "@core/types/waitlist/waitlist.types" ;
21- import { Watch } from "@core/types/watch.types" ;
21+ import { Schema_Watch } from "@core/types/watch.types" ;
2222import { Collections } from "@backend/common/constants/collections" ;
2323import { ENV } from "@backend/common/constants/env.constants" ;
2424import { waitUntilEvent } from "@backend/common/helpers/common.util" ;
@@ -28,13 +28,13 @@ const logger = Logger("app:mongo.service");
2828interface InternalClient {
2929 db : Db ;
3030 client : MongoClient ;
31- calendar : Collection < CompassCalendar > ;
32- calendarList : Collection < Schema_Calendar > ;
31+ calendar : Collection < Schema_Calendar > ;
32+ calendarList : Collection < Schema_CalList > ;
3333 event : Collection < Omit < Schema_Event , "_id" > > ;
3434 sync : Collection < Schema_Sync > ;
3535 user : Collection < Schema_User > ;
3636 waitlist : Collection < Schema_Waitlist > ;
37- watch : Collection < Watch > ;
37+ watch : Collection < Omit < Schema_Watch , "_id" > > ;
3838}
3939
4040class MongoService {
@@ -138,13 +138,13 @@ class MongoService {
138138 return {
139139 db,
140140 client,
141- calendar : db . collection < CompassCalendar > ( Collections . CALENDAR ) ,
142- calendarList : db . collection < Schema_Calendar > ( Collections . CALENDARLIST ) ,
141+ calendar : db . collection < Schema_Calendar > ( Collections . CALENDAR ) ,
142+ calendarList : db . collection < Schema_CalList > ( Collections . CALENDARLIST ) ,
143143 event : db . collection < Omit < Schema_Event , "_id" > > ( Collections . EVENT ) ,
144144 sync : db . collection < Schema_Sync > ( Collections . SYNC ) ,
145145 user : db . collection < Schema_User > ( Collections . USER ) ,
146146 waitlist : db . collection < Schema_Waitlist > ( Collections . WAITLIST ) ,
147- watch : db . collection < Watch > ( Collections . WATCH ) ,
147+ watch : db . collection < Omit < Schema_Watch , "_id" > > ( Collections . WATCH ) ,
148148 } ;
149149 }
150150
0 commit comments