Fixed left-overs from #293
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { BaseRepository } from '#application/base/baseRepository'
|
||||
import { UUID } from '#application/types'
|
||||
import { Item } from '#entities/item'
|
||||
|
||||
class ItemRepository extends BaseRepository {
|
||||
async getById(id: string): Promise<any> {
|
||||
async getById(id: UUID): Promise<any> {
|
||||
try {
|
||||
const repository = this.em.getRepository(Item)
|
||||
return await repository.findOne({ id })
|
||||
@ -12,7 +13,7 @@ class ItemRepository extends BaseRepository {
|
||||
}
|
||||
}
|
||||
|
||||
async getByIds(ids: string[]): Promise<any> {
|
||||
async getByIds(ids: UUID[]): Promise<any> {
|
||||
try {
|
||||
const repository = this.em.getRepository(Item)
|
||||
return await repository.find({
|
||||
|
Reference in New Issue
Block a user