Fix condition

This commit is contained in:
Manav Rathi
2024-07-02 15:44:02 +05:30
parent 54b0374680
commit ff94ceb254

View File

@@ -309,9 +309,9 @@ export const pullFaceEmbeddings = () =>
*/
const saveFaceIndexIfNewer = async (index: FaceIndex) => {
const version = index.faceEmbedding.version;
if (version <= faceIndexingVersion) {
if (version < faceIndexingVersion) {
log.info(
`Ignoring remote face index with version ${version} not newer than what our indexer supports (${faceIndexingVersion})`,
`Ignoring remote face index with version ${version} older than what our indexer can produce (${faceIndexingVersion})`,
);
return;
}