Minor repo improvement

This commit is contained in:
2024-12-25 17:28:35 +01:00
parent f4746722af
commit 1b87f1dd91
2 changed files with 6 additions and 10 deletions

View File

@ -8,8 +8,6 @@ class WorldService {
let world = await WorldRepository.getFirst()
if (!world) {
world = new World()
await world.save()
}
world.date = worldData.date || new Date()
@ -27,9 +25,7 @@ class WorldService {
world.fogDensity = worldData.fogDensity
}
console.log(world.date)
await world.update()
await world.save()
return true
} catch (error: any) {