mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18:19 +01:00
fix: 🚨 Fix further DeepSource issues
This commit is contained in:
parent
870b6dbe85
commit
0bf5f7c983
|
|
@ -108,7 +108,10 @@ export class PluginLoader {
|
|||
* @returns {Promise<Manifest>} - The parsed manifest object.
|
||||
* @throws Will throw an error if the manifest file is missing or invalid.
|
||||
*/
|
||||
public async parseManifest(dir: string, plugin: string): Promise<Manifest> {
|
||||
public static async parseManifest(
|
||||
dir: string,
|
||||
plugin: string,
|
||||
): Promise<Manifest> {
|
||||
const manifestFile = await PluginLoader.findManifestFile(
|
||||
`${dir}/${plugin}`,
|
||||
);
|
||||
|
|
@ -178,7 +181,7 @@ export class PluginLoader {
|
|||
|
||||
return Promise.all(
|
||||
plugins.map(async (plugin) => {
|
||||
const manifest = await this.parseManifest(dir, plugin);
|
||||
const manifest = await PluginLoader.parseManifest(dir, plugin);
|
||||
|
||||
// If autoload is disabled, only load plugins explicitly enabled
|
||||
if (
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ export const automaticOidcFlow = async (
|
|||
|
||||
const authServer = await getAuthServer(issuerUrl);
|
||||
|
||||
const parameters = await getParameters(
|
||||
const parameters = getParameters(
|
||||
authServer,
|
||||
issuer.client_id,
|
||||
currentUrl,
|
||||
|
|
|
|||
Loading…
Reference in a new issue