Removed migrations (oops), npm update, registration bug fix, include spriteImages in spriteRepository, few typo fixes

This commit is contained in:
2024-07-24 03:27:22 +02:00
parent 4b81d7ff67
commit a0fe0760b0
22 changed files with 175 additions and 236 deletions

View File

@ -4,7 +4,10 @@ import { Sprite } from '@prisma/client'
class SpriteRepository {
async getById(id: string): Promise<Sprite | null> {
return prisma.sprite.findUnique({
where: { id }
where: { id },
include: {
spriteImages: true
}
})
}