File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export async function trackJobView(data: {
1111} ) {
1212 try {
1313 const client = await getMongoClientPromise ( ) ;
14- const db = client . db ( ) ;
14+ const db = client . db ( "default" ) ;
1515 await db . collection ( VIEWS_COLLECTION ) . insertOne ( {
1616 jobId : data . jobId ,
1717 ref : data . ref || null ,
@@ -30,7 +30,7 @@ export async function trackApplyClick(job: {
3030} ) {
3131 try {
3232 const client = await getMongoClientPromise ( ) ;
33- const db = client . db ( ) ;
33+ const db = client . db ( "default" ) ;
3434 await db . collection ( CLICKS_COLLECTION ) . insertOne ( {
3535 jobId : job . jobId ,
3636 jobTitle : job . jobTitle ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ async function main() {
1616
1717 const client = new MongoClient ( uri ) ;
1818 await client . connect ( ) ;
19- const db = client . db ( ) ;
19+ const db = client . db ( "default" ) ;
2020
2121 await db
2222 . collection ( "job_views" )
You can’t perform that action at this time.
0 commit comments