Skip to content

Commit

Permalink
fix: remove array brackets
Browse files Browse the repository at this point in the history
Signed-off-by: Machiko Yasuda <[email protected]>
  • Loading branch information
machikoyasuda committed Feb 14, 2019
1 parent 87fe51d commit 8791555
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ export default async function applyPaginationToMongoAggregation(aggregationParam
const results = await collection.aggregate([...pipeline, facet]).toArray();
const firstResult = results[0];

let [{
let {
nodes,
pageInfo: [
{
totalCount: newTotalCount
}
]
}] = firstResult;
} = firstResult;

return {
totalCount: newTotalCount,
Expand Down

0 comments on commit 8791555

Please sign in to comment.