Skip to content

Commit

Permalink
fix: append config name when loading from env root
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 21, 2018
1 parent 05c6fd7 commit b9999e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function completePaths(name: string, ...extras: Array<string>): Array<str

const env = process.env[CONFIG_ENV];
if (env) {
paths.push(env);
paths.push(join(env, name));
}

if (process.env.HOME) {
Expand Down
3 changes: 0 additions & 3 deletions src/entity/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ export class Context implements ContextData {
}
}

/**
* @TODO: meaningful return value
*/
public toJSON(): any {
const user = this.user ? this.user.toJSON() : {};
return {
Expand Down

0 comments on commit b9999e1

Please sign in to comment.