Fix 'any' type

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-02-09 14:42:29 +01:00
parent f6f69c73a7
commit b2efbacb7e
+2 -5
View File
@@ -329,12 +329,9 @@ export class Org {
const safes = safesByOwner.safes.reduce(
(prev: any, curr: Safe) => prev.concat(curr.id), []);
const orgsByOwner = await utils.querySubgraph(config.orgs.subgraph, GetOrgsByOwners, { owners: [...safes, owner] });
const orgs: { id: string; owner: string }[] = [...orgsByOwner.orgs];
const orgs: any[] = [...orgsByOwner.orgs];
return orgs.map((o: { id: string; owner: string }) => {
return new Org(o.id, o.owner);
});
return orgs.map(o => new Org(o.id, o.owner));
}
static async createMultiSig(