h1z1-server 0.23.4-3 → 0.23.4-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h1z1-server",
3
- "version": "0.23.4-3",
3
+ "version": "0.23.4-4",
4
4
  "description": "Library for emulating h1z1 servers",
5
5
  "author": "Quentin Gruber <quentingruber@gmail.com> (http://github.com/quentingruber)",
6
6
  "license": "GPL-3.0-only",
@@ -840,7 +840,7 @@ export class WorldDataManager {
840
840
  .find({ serverId: server._worldId })
841
841
  .toArray();
842
842
 
843
- if (tempData) {
843
+ if (tempData.length) {
844
844
  await fixDbTempData(
845
845
  server,
846
846
  tempData,
@@ -1135,7 +1135,7 @@ export class WorldDataManager {
1135
1135
  ?.collection("crop-temp")
1136
1136
  .find({ serverId: server._worldId })
1137
1137
  .toArray();
1138
- if (tempData) {
1138
+ if (tempData.length) {
1139
1139
  await fixDbTempData(
1140
1140
  server,
1141
1141
  tempData,
@@ -1196,7 +1196,7 @@ export class WorldDataManager {
1196
1196
  ?.collection(DB_COLLECTIONS.WORLD_CONSTRUCTIONS_TEMP)
1197
1197
  .find({ serverId: server._worldId })
1198
1198
  .toArray();
1199
- if (tempData) {
1199
+ if (tempData.length) {
1200
1200
  await fixDbTempData(
1201
1201
  server,
1202
1202
  tempData,