Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheidudko authored Jan 10, 2024
1 parent 8dfca2c commit 09ed25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/database/InternalConfig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class InternalConfigModel {

static fromJson(json: { [key: string]: any }): InternalConfigModel {
return new InternalConfigModel({
maintenanceMode: typeof json?.requests === 'boolean' ? json.maintenanceMode : false,
maintenanceMode: typeof json?.maintenanceMode === 'boolean' ? json.maintenanceMode : false,
maintenanceMessage: typeof json?.maintenanceMessage === 'string' ? json.maintenanceMessage : '',
});
}
Expand Down

0 comments on commit 09ed25d

Please sign in to comment.