Do not run JS scanner

Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
James Ketrenos 2020-01-06 01:14:09 -08:00
parent 0799e214f5
commit f28293c3f1

View File

@ -119,7 +119,7 @@ require("./db/photos").then(function(db) {
processed = 0,
lastStatus = Date.now();
console.log(`${needToScan.length} photos have not had faces scanned.`);
console.log(`${needToScan.length} photos have not had faces scanned.`);
return Promise.map(needToScan, (photo) => {
const photoPath = photo.path + photo.filename;
@ -264,6 +264,8 @@ require("./db/photos").then(function(db) {
});
}).then((facesToUpdate) => {
console.log(`...${facesToUpdate.length} faces need distances updated.`);
console.log("---- run scanner/scanner !! ---");
return [];
if (facesToUpdate.length == 0) {
return facesToUpdate;
}