chore: Use ES module path to import auth files
This commit is contained in:
@@ -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 });
|
||||
|
Reference in New Issue
Block a user