From 6c05e1d2af0490f582a136dfac1603f2d0ed38a8 Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 23 Dec 2024 00:32:22 +0100 Subject: [PATCH] rename 'acct' --- src/controllers/api/loginController.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/controllers/api/loginController.ts b/src/controllers/api/loginController.ts index 156f057a..2dd7e6f0 100644 --- a/src/controllers/api/loginController.ts +++ b/src/controllers/api/loginController.ts @@ -65,19 +65,19 @@ export const loginController: RequestHandler = async (request, response) => { response.json(createLoginResponse(account.toJSON(), buildLabel)); }; -const createLoginResponse = (acct: IDatabaseAccountDocument, buildLabel: string): ILoginResponse => { +const createLoginResponse = (account: IDatabaseAccountDocument, buildLabel: string): ILoginResponse => { return { - id: acct.id, - DisplayName: acct.DisplayName, - CountryCode: acct.CountryCode, - ClientType: acct.ClientType, - CrossPlatformAllowed: acct.CrossPlatformAllowed, - ForceLogoutVersion: acct.ForceLogoutVersion, - AmazonAuthToken: acct.AmazonAuthToken, - AmazonRefreshToken: acct.AmazonRefreshToken, - ConsentNeeded: acct.ConsentNeeded, - TrackedSettings: acct.TrackedSettings, - Nonce: acct.Nonce, + id: account.id, + DisplayName: account.DisplayName, + CountryCode: account.CountryCode, + ClientType: account.ClientType, + CrossPlatformAllowed: account.CrossPlatformAllowed, + ForceLogoutVersion: account.ForceLogoutVersion, + AmazonAuthToken: account.AmazonAuthToken, + AmazonRefreshToken: account.AmazonRefreshToken, + ConsentNeeded: account.ConsentNeeded, + TrackedSettings: account.TrackedSettings, + Nonce: account.Nonce, Groups: groups, platformCDNs: platformCDNs, NRS: [config.myAddress],