Support unicode to get users/user APIs

This commit is contained in:
2026-04-06 17:02:42 +10:00
parent b98aed21bf
commit 6d792ee4c0
3 changed files with 73 additions and 38 deletions

View File

@@ -1814,10 +1814,12 @@ namespace ANSCENTER {
}
}
// No faces is a valid state (user just created or faces already removed)
if (faceIds.empty()) {
LogThreadSafe("ANSFacialRecognition::DeleteFacesByUser",
"No faces found for user ID " + std::to_string(userId));
return 0;
"No faces found for user ID " + std::to_string(userId) + " — skipping",
LogLevel::Debug);
return 1;
}
// Delete each face from database (lock per deletion)