Fixed left-overs from #293

This commit is contained in:
2025-01-01 21:49:01 +01:00
parent 7c473de12b
commit 45e756fcd3
19 changed files with 53 additions and 41 deletions

View File

@ -1,7 +1,8 @@
import { BaseRepository } from '#application/base/baseRepository'
import { UUID } from '#application/types'
class ObjectRepository extends BaseRepository {
async getById(id: string): Promise<any> {
async getById(id: UUID): Promise<any> {
try {
const repository = this.em.getRepository(Object)
return await repository.findOne({ id })