File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,12 @@ import {
1111 recordServerErrorByVersion ,
1212} from "../utils/prometheus" ;
1313import { isDevEnvironment } from "../utils/misc" ;
14- import { ObjectId } from "mongodb" ;
1514import { version } from "../version" ;
1615import { addLog } from "../dal/logs" ;
1716import { ExpressRequestWithContext } from "../api/types" ;
1817
1918type DBError = {
20- _id : ObjectId ;
19+ _id : string ; //we are using uuid here, not objectIds
2120 timestamp : number ;
2221 status : number ;
2322 uid : string ;
@@ -81,7 +80,7 @@ async function errorHandlingMiddleware(
8180 uid
8281 ) ;
8382 await db . collection < DBError > ( "errors" ) . insertOne ( {
84- _id : new ObjectId ( errorId ) ,
83+ _id : errorId ,
8584 timestamp : Date . now ( ) ,
8685 status : status ,
8786 uid,
You can’t perform that action at this time.
0 commit comments