Adhere to typespec

Signed-off-by: Joep Peeters <joep.peeters@nedap.com>
This commit is contained in:
Joep Peeters
2023-02-21 16:50:39 +01:00
parent 53cd08bca2
commit e1dafc78df
@@ -285,12 +285,13 @@ export class DatabaseManager {
*/
private getConfigForPlugin(pluginId: string): Knex.Config {
const { client } = this.getClientType(pluginId);
const setOwner = this.getSetOwnerConfig(pluginId);
return {
...this.getAdditionalKnexConfig(pluginId),
client,
connection: this.getConnectionConfig(pluginId),
setOwner: this.getSetOwnerConfig(pluginId),
...(setOwner && { setOwner }),
};
}