mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 05:09:26 +00:00
fix: refactor two commands in saving grade to prevent race conditions
This commit is contained in:
@@ -38,7 +38,10 @@ class AuthSettings {
|
||||
}
|
||||
|
||||
export class AppSettings {
|
||||
constructor(public env: EnvironmentSettings, public auth: AuthSettings) {}
|
||||
constructor(
|
||||
public env: EnvironmentSettings,
|
||||
public auth: AuthSettings
|
||||
) {}
|
||||
}
|
||||
const env = new EnvironmentSettings((process.env.NODE_ENV || 'DEVELOPMENT') as EnvironmentsTypes)
|
||||
const auth = new AuthSettings(process.env)
|
||||
|
||||
Reference in New Issue
Block a user