Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
@repository(CharacterRepository)
public characterRepository: CharacterRepository,
@repository(WeaponRepository)
public weaponRepository: WeaponRepository,
@repository(ArmorRepository)
public armorRepository: ArmorRepository,
@repository(SkillRepository)
public skillRepository: SkillRepository,
//
@inject.getter(AuthenticationBindings.CURRENT_USER)
public getCurrentUser: Getter,
) {}
constructor(
@inject('datasources.pgdb') dataSource: PgdbDataSource,
@inject.getter(AuthenticationBindings.CURRENT_USER)
protected readonly getCurrentUser: Getter,
) {
super(Tenant, dataSource, getCurrentUser);
}
}
constructor(
@repository(CharacterRepository)
public characterRepository: CharacterRepository,
@inject(MyAuthBindings.TOKEN_SERVICE)
public jwtService: JWTService,
@inject.getter(AuthenticationBindings.CURRENT_USER)
public getCurrentUser: Getter,
) {}
constructor(
@inject.getter(MyAuthBindings.STRATEGY) readonly getStrategy: Getter,
@inject.setter(AuthenticationBindings.CURRENT_USER) readonly setCurrentUser: Setter,
@inject.getter(AuthenticationBindings.METADATA) readonly getMetadata: Getter,
) {}
constructor(
@inject('datasources.pgdb') dataSource: PgdbDataSource,
@inject.getter(AuthenticationBindings.CURRENT_USER)
protected readonly getCurrentUser: Getter,
@repository.getter('UserCredentialsRepository')
getUserCredsRepository: Getter,
) {
super(User, dataSource, getCurrentUser);
this.credentials = this.createHasOneRepositoryFactoryFor(
'credentials',
getUserCredsRepository,
);
}
constructor(
@inject('datasources.pgdb') dataSource: PgdbDataSource,
@repository.getter(UserTenantRepository)
utRepositoryGetter: Getter,
@inject.getter(AuthenticationBindings.CURRENT_USER)
protected readonly getCurrentUser: Getter,
) {
super(UserTenantPermission, dataSource, getCurrentUser);
this.userTenant = this.createBelongsToAccessorFor(
'user_tenant_id',
utRepositoryGetter,
);
}
}
constructor(
@inject.getter(MyAuthBindings.STRATEGY) readonly getStrategy: Getter,
@inject.setter(AuthenticationBindings.CURRENT_USER) readonly setCurrentUser: Setter,
@inject.getter(AuthenticationBindings.METADATA) readonly getMetadata: Getter,
) {}