chore: Use ES module path to import auth files

This commit is contained in:
Faruk AYDIN
2024-01-09 12:51:41 +01:00
parent c4a6c86a69
commit 6a639e4ac9

View File

@@ -15,8 +15,10 @@ const generateAuthUrl = async (_parent, params, context) => {
return null;
}
const authInstance = (await import(`../../apps/${connection.key}/auth`))
.default;
const authInstance = (
await import(`../../apps/${connection.key}/auth/index.js`)
).default;
const app = await App.findOneByKey(connection.key);
const $ = await globalVariable({ connection, app });