Removed migrations (oops), npm update, registration bug fix, include spriteImages in spriteRepository, few typo fixes
This commit is contained in:
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user