Do not run JS scanner
Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
parent
0799e214f5
commit
f28293c3f1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user