mirror of
https://github.com/standardnotes/server
synced 2026-10-17 12:03:09 -04:00
chore: lint
This commit is contained in:
@@ -226,6 +226,7 @@ import { TypeORMEphemeralSessionRepository } from '../Infra/TypeORM/TypeORMEphem
|
||||
import { TypeORMOfflineSubscriptionTokenRepository } from '../Infra/TypeORM/TypeORMOfflineSubscriptionTokenRepository'
|
||||
import { TypeORMPKCERepository } from '../Infra/TypeORM/TypeORMPKCERepository'
|
||||
import { TypeORMSubscriptionTokenRepository } from '../Infra/TypeORM/TypeORMSubscriptionTokenRepository'
|
||||
import { GetUser } from '../Domain/UseCase/GetUser'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const newrelicFormatter = require('@newrelic/winston-enricher')
|
||||
@@ -729,6 +730,7 @@ export class ContainerConfigLoader {
|
||||
)
|
||||
container.bind<GetUserKeyParams>(TYPES.GetUserKeyParams).to(GetUserKeyParams)
|
||||
container.bind<UpdateUser>(TYPES.UpdateUser).to(UpdateUser)
|
||||
container.bind<GetUser>(TYPES.GetUser).to(GetUser)
|
||||
container.bind<Register>(TYPES.Register).to(Register)
|
||||
container.bind<GetActiveSessionsForUser>(TYPES.GetActiveSessionsForUser).to(GetActiveSessionsForUser)
|
||||
container.bind<DeletePreviousSessionsForUser>(TYPES.DeletePreviousSessionsForUser).to(DeletePreviousSessionsForUser)
|
||||
|
||||
@@ -111,6 +111,7 @@ const TYPES = {
|
||||
IncreaseLoginAttempts: Symbol.for('IncreaseLoginAttempts'),
|
||||
GetUserKeyParams: Symbol.for('GetUserKeyParams'),
|
||||
UpdateUser: Symbol.for('UpdateUser'),
|
||||
GetUser: Symbol.for('GetUser'),
|
||||
Register: Symbol.for('Register'),
|
||||
GetActiveSessionsForUser: Symbol.for('GetActiveSessionsForUser'),
|
||||
DeletePreviousSessionsForUser: Symbol.for('DeletePreviousSessionsForUser'),
|
||||
|
||||
@@ -25,7 +25,7 @@ import { GetUser } from '../Domain/UseCase/GetUser'
|
||||
export class UsersController extends BaseHttpController {
|
||||
constructor(
|
||||
@inject(TYPES.UpdateUser) private updateUser: UpdateUser,
|
||||
@inject(TYPES.UpdateUser) private getUser: GetUser,
|
||||
@inject(TYPES.GetUser) private getUser: GetUser,
|
||||
@inject(TYPES.GetUserKeyParams) private getUserKeyParams: GetUserKeyParams,
|
||||
@inject(TYPES.DeleteAccount) private doDeleteAccount: DeleteAccount,
|
||||
@inject(TYPES.GetUserSubscription) private doGetUserSubscription: GetUserSubscription,
|
||||
@@ -175,6 +175,7 @@ export class UsersController extends BaseHttpController {
|
||||
}
|
||||
|
||||
return this.json({
|
||||
uuid: result.user.uuid,
|
||||
email: result.user.email,
|
||||
public_key: result.user.publicKey,
|
||||
encrypted_private_key: result.user.encryptedPrivateKey,
|
||||
|
||||
Reference in New Issue
Block a user