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('datasources.db') dataSource: juggler.DataSource,
@repository.getter('TodoListRepository')
protected todoListRepositoryGetter: Getter,
) {
super(Todo, dataSource);
this.todoList = this.createBelongsToAccessorFor(
'todoList',
todoListRepositoryGetter,
);
this.registerInclusionResolver('todoList', this.todoList.inclusionResolver);
}
}
constructor(
@inject('datasources.mongo') dataSource: MongoDbDataSource,
@repository.getter('CharacterRepository')
protected characterRepositoryGetter: Getter,
) {
super(Weapon, dataSource);
//this.character = this.createBelongsToAccessorFor('character',characterRepositoryGetter);
}
}
constructor(
@inject('datasources.mongo') dataSource: MongoDbDataSource,
@repository.getter(ArmorRepository)
protected armorRepositoryGetter: Getter,
@repository.getter(WeaponRepository)
protected weaponRepositoryGetter: Getter,
@repository.getter(SkillRepository)
protected skillRepositoryGetter: Getter,
) {
super(Character, dataSource);
this.armor = this.createHasOneRepositoryFactoryFor('armor', armorRepositoryGetter);
this.weapon = this.createHasOneRepositoryFactoryFor('weapon', weaponRepositoryGetter);
this.skill = this.createHasOneRepositoryFactoryFor('skill', skillRepositoryGetter);
}
}
constructor(
@inject('datasources.db') dataSource: juggler.DataSource,
@repository.getter('TodoRepository')
protected todoRepositoryGetter: Getter,
@repository.getter('TodoListImageRepository')
protected todoListImageRepositoryGetter: Getter,
) {
super(TodoList, dataSource);
this.todos = this.createHasManyRepositoryFactoryFor(
'todos',
todoRepositoryGetter,
);
this.registerInclusionResolver('todos', this.todos.inclusionResolver);
this.image = this.createHasOneRepositoryFactoryFor(
'image',
todoListImageRepositoryGetter,
constructor(
@inject('datasources.mongo') dataSource: MongoDbDataSource,
@repository.getter(ArmorRepository)
protected armorRepositoryGetter: Getter,
@repository.getter(WeaponRepository)
protected weaponRepositoryGetter: Getter,
@repository.getter(SkillRepository)
protected skillRepositoryGetter: Getter,
) {
super(Character, dataSource);
this.armor = this.createHasOneRepositoryFactoryFor('armor', armorRepositoryGetter);
this.weapon = this.createHasOneRepositoryFactoryFor('weapon', weaponRepositoryGetter);
this.skill = this.createHasOneRepositoryFactoryFor('skill', skillRepositoryGetter);
}
}
constructor(
@inject('datasources.db') dataSource: DbDataSource,
@repository.getter('TodoListRepository')
protected todoListRepositoryGetter: Getter,
) {
super(TodoListImage, dataSource);
this.todoList = this.createBelongsToAccessorFor(
'todoList',
todoListRepositoryGetter,
);
this.registerInclusionResolver('todoList', this.todoList.inclusionResolver);
}
}
constructor(
@inject('datasources.mongo') dataSource: MongoDbDataSource,
@repository.getter(ArmorRepository)
protected armorRepositoryGetter: Getter,
@repository.getter(WeaponRepository)
protected weaponRepositoryGetter: Getter,
@repository.getter(SkillRepository)
protected skillRepositoryGetter: Getter,
) {
super(Character, dataSource);
this.armor = this.createHasOneRepositoryFactoryFor('armor', armorRepositoryGetter);
this.weapon = this.createHasOneRepositoryFactoryFor('weapon', weaponRepositoryGetter);
this.skill = this.createHasOneRepositoryFactoryFor('skill', skillRepositoryGetter);
}
}
constructor(
@inject('datasources.db') dataSource: DbDataSource,
@repository.getter(EquipmentRepository)
protected equipmentRepositoryGetter: Getter,
@repository.getter(WeaponRepository)
protected weaponRepositoryGetter: Getter,
) {
super(Set, dataSource);
this.equipments = this.createHasManyRepositoryFactoryFor(
'equipments',
equipmentRepositoryGetter,
);
this.weapons = this.createHasManyRepositoryFactoryFor(
'weapons',
weaponRepositoryGetter,
);
}
constructor(
@inject('datasources.mongo') protected datasource: juggler.DataSource,
@repository(OrderRepository) protected orderRepository: OrderRepository,
@repository.getter('UserCredentialsRepository')
protected userCredentialsRepositoryGetter: Getter<
UserCredentialsRepository
>,
) {
super(User, datasource);
this.userCredentials = this.createHasOneRepositoryFactoryFor(
'userCredentials',
userCredentialsRepositoryGetter,
);
this.orders = this.createHasManyRepositoryFactoryFor(
'orders',
async () => orderRepository,
);
}
constructor(
@inject('datasources.mongo') dataSource: MongoDbDataSource,
@repository.getter('CharacterRepository')
protected characterRepositoryGetter: Getter,
) {
super(Armor, dataSource);
this.character = this.createBelongsToAccessorFor('character',characterRepositoryGetter);
}
}