Skip to content

Commit

Permalink
BC-6885 - remove standalone mongodb package (#4905)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfganggreschus authored Apr 10, 2024
1 parent 194d96e commit f4cad10
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MongoMemoryDatabaseModule } from '@infra/database';
import { MikroORM } from '@mikro-orm/core';
import { ObjectId } from '@mikro-orm/mongodb';
import { Test, TestingModule } from '@nestjs/testing';
import { MongoMemoryDatabaseModule } from '@infra/database';
import { ObjectId } from 'mongodb';
import { DatabaseManagementService } from './database-management.service';

const randomChars = () => new ObjectId().toHexString();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MikroORM } from '@mikro-orm/core';
import { MigrateOptions, UmzugMigration } from '@mikro-orm/migrations-mongodb';
import { EntityManager } from '@mikro-orm/mongodb';
import { Collection, Db } from 'mongodb';
import { Collection, Db } from '@mikro-orm/mongodb/node_modules/mongodb';
import { Injectable } from '@nestjs/common';
import { BaseEntity } from '@shared/domain/entity';

Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/modules/tldraw/repo/tldraw.repo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MikroORM } from '@mikro-orm/core';
import { EntityManager } from '@mikro-orm/mongodb';
import { BulkWriteResult, Collection, Sort } from 'mongodb';
import { BulkWriteResult, Collection, Sort } from '@mikro-orm/mongodb/node_modules/mongodb';
import { Injectable } from '@nestjs/common';
import { TldrawDrawing } from '../entities';

Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/modules/tldraw/repo/y-mongodb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BulkWriteResult } from 'mongodb';
import { BulkWriteResult } from '@mikro-orm/mongodb/node_modules/mongodb';
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Logger } from '@src/core/logger';
Expand Down
51 changes: 34 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@
"lodash": "^4.17.19",
"mixwith": "^0.1.1",
"moment": "^2.19.2",
"mongodb": "^4.13.0",
"mongodb-uri": "^0.9.7",
"mongoose": "^6.12.3",
"mongoose-delete": "^0.5.4",
Expand Down

0 comments on commit f4cad10

Please sign in to comment.