Remove all use of spread

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-12 15:43:12 -08:00
parent b1637ad857
commit 7df864b95d

View File

@ -109,7 +109,8 @@ function scanDir(parent, path) {
require("./server/db/photos").then(function(db) { require("./server/db/photos").then(function(db) {
photoDB = 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."); console.log(assets.length + " assets have incorrect dates.");
let toProcess = assets.length, lastMessage = moment(), started = moment(); let toProcess = assets.length, lastMessage = moment(), started = moment();
return photoDB.sequelize.transaction(function (t) { return photoDB.sequelize.transaction(function (t) {