Remove remaining mongodb references

- Replace ObjectId import with string type in approval.workflow.ts
- Delete mongodb.d.ts type declaration file

Made-with: Cursor
This commit is contained in:
Talal Sharabi
2026-03-14 17:06:50 +04:00
parent 65554ed4ce
commit e750317757
4 changed files with 9 additions and 7 deletions

View File

View File

@@ -0,0 +1,8 @@
# Google Cloud EnCoach Analysis
Open this Cursor transcript using the chat UUID:
- [Google Cloud EnCoach Analysis](9c3d1115-4845-4980-a0d5-33767025c260)
Notes:
- This is the transcript where `talal@encoach.com` was used for the Google Cloud EnCoach infrastructure analysis.

View File

@@ -1,9 +1,8 @@
import { ObjectId } from "mongodb";
import { Module } from "."; import { Module } from ".";
import { Type, User, userTypeLabels, userTypeLabelsShort } from "./user"; import { Type, User, userTypeLabels, userTypeLabelsShort } from "./user";
export interface ApprovalWorkflow { export interface ApprovalWorkflow {
_id?: ObjectId, _id?: string,
name: string, name: string,
entityId: string, entityId: string,
requester: User["id"], requester: User["id"],

5
src/mongodb.d.ts vendored
View File

@@ -1,5 +0,0 @@
import {MongoClient} from "mongodb";
declare global {
var _mongoClientPromise: Promise<MongoClient>;
}