1
0
forked from noxious/server

Added default hair color to init command, set updatedAt when saving sprites

This commit is contained in:
2025-02-18 21:29:37 +01:00
parent c14ae36a94
commit b7dd0cbd75
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ export default class SpriteUpdateEvent extends BaseEvent {
await spriteRepository.getEntityManager().populate(sprite, ['spriteActions'])
// Update sprite in database
await sprite.setName(data.name).save()
await sprite.setName(data.name).setUpdatedAt(new Date()).save()
// First verify all sprite sheets can be generated
for (const actionData of data.spriteActions) {