famous last words: fuck (changing ORM)

This commit is contained in:
2024-12-24 15:27:24 +01:00
parent ac4cefa902
commit 241cfb3eb2
6 changed files with 107 additions and 42 deletions

File diff suppressed because one or more lines are too long

View File

@ -23,6 +23,11 @@ class CharacterRepository {
}
}
}
},
equipment: {
include: {
item: true
}
}
}
})
@ -55,6 +60,11 @@ class CharacterRepository {
}
}
}
},
equipment: {
include: {
item: true
}
}
}
})
@ -86,6 +96,11 @@ class CharacterRepository {
}
}
}
},
equipment: {
include: {
item: true
}
}
}
})
@ -117,6 +132,11 @@ class CharacterRepository {
}
}
}
},
equipment: {
include: {
item: true
}
}
}
})

View File

@ -158,9 +158,12 @@ export default class SpriteUpdateEvent {
const processedInput = await sharp(buffer)
.ensureAlpha()
.resize({
width: frameWidth, // Set maximum width
height: frameHeight, // Set maximum height
fit: 'inside', // Ensure image fits within dimensions
kernel: sharp.kernel.nearest,
fit: 'contain',
position: 'center'
position: 'center',
withoutEnlargement: true // Don't enlarge smaller images
})
.png({
compressionLevel: 9,