Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh Balyan committed Aug 27, 2024
1 parent 4b29c0d commit 8a16e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utils/Database/mongo.connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const registerAllPlugins = async () => {
const files = getDirectories('.', 'plugin');

for (const file of files) {
const schema = await import(file);
const schema = await import("../../"+file);
const defaultFile = schema.default;
mongoose.plugin(defaultFile);
};
Expand Down Expand Up @@ -65,7 +65,7 @@ const registerAllSchema = async (db) => {
try {
const files = getDirectories('.', 'schema');
for (const file of files) {
const schema = await import(file);
const schema = await import("../../"+file);
const defaultFile = schema.default;

const tempAr = file.split('.');
Expand Down

0 comments on commit 8a16e1e

Please sign in to comment.