Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Update src/config/configuration.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian <[email protected]>
  • Loading branch information
tomwwinter and sleidig authored Feb 16, 2024
1 parent af45d32 commit 9044f24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export function AppConfiguration() {
);
}

/**
* Recursively create a flat key-value object where keys contain nested keys as prefixes
*/
function flatten(obj: any, prefix = '', delimiter = '_') {
return Object.keys(obj).reduce((acc: any, k: string) => {
const pre = prefix.length ? prefix + delimiter : '';
Expand Down

0 comments on commit 9044f24

Please sign in to comment.