rename 'acct'
This commit is contained in:
parent
746e44e868
commit
6c05e1d2af
@ -65,19 +65,19 @@ export const loginController: RequestHandler = async (request, response) => {
|
|||||||
response.json(createLoginResponse(account.toJSON(), buildLabel));
|
response.json(createLoginResponse(account.toJSON(), buildLabel));
|
||||||
};
|
};
|
||||||
|
|
||||||
const createLoginResponse = (acct: IDatabaseAccountDocument, buildLabel: string): ILoginResponse => {
|
const createLoginResponse = (account: IDatabaseAccountDocument, buildLabel: string): ILoginResponse => {
|
||||||
return {
|
return {
|
||||||
id: acct.id,
|
id: account.id,
|
||||||
DisplayName: acct.DisplayName,
|
DisplayName: account.DisplayName,
|
||||||
CountryCode: acct.CountryCode,
|
CountryCode: account.CountryCode,
|
||||||
ClientType: acct.ClientType,
|
ClientType: account.ClientType,
|
||||||
CrossPlatformAllowed: acct.CrossPlatformAllowed,
|
CrossPlatformAllowed: account.CrossPlatformAllowed,
|
||||||
ForceLogoutVersion: acct.ForceLogoutVersion,
|
ForceLogoutVersion: account.ForceLogoutVersion,
|
||||||
AmazonAuthToken: acct.AmazonAuthToken,
|
AmazonAuthToken: account.AmazonAuthToken,
|
||||||
AmazonRefreshToken: acct.AmazonRefreshToken,
|
AmazonRefreshToken: account.AmazonRefreshToken,
|
||||||
ConsentNeeded: acct.ConsentNeeded,
|
ConsentNeeded: account.ConsentNeeded,
|
||||||
TrackedSettings: acct.TrackedSettings,
|
TrackedSettings: account.TrackedSettings,
|
||||||
Nonce: acct.Nonce,
|
Nonce: account.Nonce,
|
||||||
Groups: groups,
|
Groups: groups,
|
||||||
platformCDNs: platformCDNs,
|
platformCDNs: platformCDNs,
|
||||||
NRS: [config.myAddress],
|
NRS: [config.myAddress],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user