Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-0311 committed Aug 19, 2023
1 parent 12615b4 commit 54437b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/resolvers/Query/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ export const organizations: QueryResolvers["organizations"] = async (

let organizationFound;
if (args.id) {

const organizationFoundInCache = await findOrganizationsInCache([args.id]);

if (!organizationFoundInCache.includes(null)) {
return organizationFoundInCache;
}

Check warning on line 29 in src/resolvers/Query/organizations.ts

View check run for this annotation

Codecov / codecov/patch

src/resolvers/Query/organizations.ts#L27-L29

Added lines #L27 - L29 were not covered by tests

organizationFound = await Organization.find({
_id: args.id,
})
.sort(sort)
.lean();


await cacheOrganizations(organizationFound);

if (!organizationFound[0]) {
Expand Down

0 comments on commit 54437b0

Please sign in to comment.