add setOwner to pluginConfig

Signed-off-by: Joep Peeters <joep.peeters@nedap.com>
This commit is contained in:
Joep Peeters
2023-02-17 10:11:18 +01:00
parent ad0f2169d6
commit 8f50a80732
@@ -186,6 +186,13 @@ export class DatabaseManager {
};
}
private getSetOwnerConfig(pluginId: string): string | undefined {
return (
this.config.getOptionalString(`${pluginPath(pluginId)}.setOwner`) ??
this.config.getOptionalString('setOwner')
);
}
/**
* Provides the knexConfig which should be used for a given plugin.
*
@@ -283,6 +290,7 @@ export class DatabaseManager {
...this.getAdditionalKnexConfig(pluginId),
client,
connection: this.getConnectionConfig(pluginId),
setOwner: this.getSetOwnerConfig(pluginId),
};
}