Skip to content

Commit

Permalink
fix(sys-server): fix ACCOUNT_DEFAULT_APP_QUOTA's type
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Oct 7, 2021
1 parent e0d69d2 commit ffb2d08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/system-server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export default class Config {
* The application count that an account can create by default
*/
static get ACCOUNT_DEFAULT_APP_QUOTA(): number {
return (process.env.ACCOUNT_DEFAULT_APP_QUOTA ?? 2) as number
const value = process.env.ACCOUNT_DEFAULT_APP_QUOTA ?? 2
return Number(value)
}

/**
Expand Down

0 comments on commit ffb2d08

Please sign in to comment.