mirror of
https://github.com/ente-io/ente.git
synced 2025-08-12 09:10:25 +00:00
Fix debug flow
This commit is contained in:
parent
839727393b
commit
e7e74c17f8
@ -419,13 +419,14 @@ function convertSuggestionToSearchQuery(option: Suggestion): Search {
|
||||
async function getAllPeople(limit: number = undefined) {
|
||||
if (!(await wipClusterEnable())) return [];
|
||||
|
||||
if (Math.random() < 0.01) {
|
||||
if (process.env.NEXT_PUBLIC_ENTE_WIP_CL_FETCH) {
|
||||
const entityKey = await getEntityKey("person" as EntityType);
|
||||
const peopleR = await personDiff(entityKey.data);
|
||||
const r = peopleR.length;
|
||||
log.debug(() => ["people", peopleR]);
|
||||
|
||||
if (r) return [];
|
||||
return [];
|
||||
}
|
||||
|
||||
let people: Array<Person> = []; // await mlIDbStorage.getAllPeople();
|
||||
|
@ -317,7 +317,6 @@ let last: Person[] | undefined;
|
||||
export const wipClusterEnable = async () => {
|
||||
if (!isDevBuild || !(await isInternalUser())) return false;
|
||||
if (!process.env.NEXT_PUBLIC_ENTE_WIP_CL) return false;
|
||||
if (last) return false;
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user