Minor repo improvement
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user