forked from noxious/server
Moved service logic from repo to service, minor improvements, working hair customisation proof of concept
This commit is contained in:
@ -5,6 +5,13 @@ class CharacterHairRepository {
|
||||
async getAll(): Promise<CharacterHair[]> {
|
||||
return prisma.characterHair.findMany()
|
||||
}
|
||||
async getIsEnabledForCharCreationHair(): Promise<CharacterHair[]> {
|
||||
return prisma.characterHair.findMany({
|
||||
where: {
|
||||
isEnabledForCharCreation: true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default new CharacterHairRepository()
|
||||
|
Reference in New Issue
Block a user