Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
@inject(AuthenticationBindings.CURRENT_CLIENT)
private readonly client: AuthClient | undefined,
@inject(AuthenticationBindings.CURRENT_USER)
private readonly user: AuthUser | undefined,
@inject(AuthorizationBindings.USER_PERMISSIONS)
private readonly getUserPermissions: UserPermissionsFn,
@repository(AuthClientRepository)
public authClientRepository: AuthClientRepository,
@repository(UserRepository)
public userRepo: UserRepository,
@repository(UserTenantRepository)
public userTenantRepo: UserTenantRepository,
@repository(UserTenantPermissionRepository)
public utPermsRepo: UserTenantPermissionRepository,
@repository(RefreshTokenRepository)
public refreshTokenRepo: RefreshTokenRepository,
) {}
// sonarignore_end
constructor(
@repository('CustomerRepository')
private customerRepository: CustomerRepository,
) {}
constructor(
@repository(UserRepository)
public userRepository: UserRepository,
) {}
constructor(
@repository(TodoListRepository)
public todoListRepository: TodoListRepository,
) {}
constructor(
@repository(UserRepository)
public userRepository: UserRepository,
) {}
constructor(
@repository(SetRepository) protected setRepo: SetRepository,
) { }
constructor(
@repository('TransactionRepository')
private transactionRepository: TransactionRepository,
) {}
constructor(
@repository(UserRepository) public userRepository: UserRepository,
@inject('services.RecommenderService')
public recommender: RecommenderService,
@inject(PasswordHasherBindings.PASSWORD_HASHER)
public passwordHasher: PasswordHasher,
@inject(TokenServiceBindings.TOKEN_SERVICE)
public jwtService: TokenService,
@inject(UserServiceBindings.USER_SERVICE)
public userService: UserService,
) {}
constructor(@repository(TodoRepository) protected todoRepo: TodoRepository) {}
constructor(
@repository(ShoppingCartRepository)
public shoppingCartRepository: ShoppingCartRepository,
) {}