This commit is contained in:
Manav Rathi
2024-08-10 09:09:50 +05:30
parent 5d28f75c1a
commit 62e27916b7

View File

@@ -125,11 +125,8 @@ export const userEntityDiff = async (
*/
export const personDiff = async (entityKeyB64: string) => {
const entities = await userEntityDiff("person", 0, entityKeyB64);
return Promise.all(
entities.map(async ({ data }) => {
if (!data) return undefined;
// return JSON.parse(await gunzip(data)) as unknown;
return JSON.parse(new TextDecoder().decode(data)) as unknown;
}),
);
return entities.map(({ data }) => {
if (!data) return undefined;
return JSON.parse(new TextDecoder().decode(data)) as unknown;
});
};