Skip to content

Commit

Permalink
fix import data
Browse files Browse the repository at this point in the history
Signed-off-by: M-Vamshi <21211a05f1@bvrit.ac.in>
  • Loading branch information
varshith257 committed Mar 23, 2024
1 parent 9a0f478 commit ca5836e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"markdown-toc": "^1.2.0",
"mongodb": "6.3.0",
"mongodb": "^6.3.0",
"mongoose": "^8.2.0",
"mongoose-paginate-v2": "^1.8.0",
"morgan": "^1.10.0",
Expand Down
4 changes: 2 additions & 2 deletions setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import path from "path";
/* eslint-disable */
import type { ExecException } from "child_process";
import { exec } from "child_process";
import mongodb from "mongodb";
import mongodb, { MongoClient } from "mongodb";
import { MAXIMUM_IMAGE_SIZE_LIMIT_KB } from "./src/constants";
import {
askForMongoDBUrl,
Expand Down Expand Up @@ -210,7 +210,7 @@ async function askForTransactionLogPath(): Promise<string> {
*/
export async function shouldWipeExistingData(url: string): Promise<boolean> {
let shouldImport = false;
const client = new mongodb.MongoClient(url);
const client = new MongoClient(`${url}`);
try {
await client.connect();
const db = client.db();
Expand Down

0 comments on commit ca5836e

Please sign in to comment.