Explorar el Código

Мелкий рефакторинг

Book Pauk hace 2 años
padre
commit
254118f845
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/core/Reader/JembaReaderStorage.js

+ 1 - 1
server/core/Reader/JembaReaderStorage.js

@@ -147,7 +147,7 @@ class JembaReaderStorage {
         try {
             const sorted = [];
             for (const [id, obj] of this.cacheMap)
-                sorted.push(Object.assign({id}, obj));
+                sorted.push({id, time: obj.time});
 
             sorted.sort((a, b) => b.time - a.time);