Remove all use of spread
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
b1637ad857
commit
7df864b95d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user