From 7df864b95d0767efdbca0d6bf508b72a8a0a38e7 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 12 Jan 2023 15:43:12 -0800 Subject: [PATCH] Remove all use of spread Signed-off-by: James Ketrenos --- fixdate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fixdate.js b/fixdate.js index 8ae95f8..32c3723 100644 --- a/fixdate.js +++ b/fixdate.js @@ -109,7 +109,8 @@ function scanDir(parent, path) { require("./server/db/photos").then(function(db) { photoDB = db; - return scanDir(null, picturesPath).spread(function(albums, assets) { + return scanDir(null, picturesPath) + .then(([ albums, assets ]) => { console.log(assets.length + " assets have incorrect dates."); let toProcess = assets.length, lastMessage = moment(), started = moment(); return photoDB.sequelize.transaction(function (t) {