Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 84f43ec

Browse files
authored
Merge pull request #264 from kodadot/group-by-bug
Group by image and collection
2 parents 32c8e2f + 4b3adc7 commit 84f43ec

File tree

1 file changed

+2
-1
lines changed
  • dashboard/src/components/rmrk/Gallery/Search

1 file changed

+2
-1
lines changed

dashboard/src/components/rmrk/Gallery/Search/query.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const basicAggregation = (): Aggregator => {
2626
const agg: Aggregation = [
2727
{
2828
$group: {
29-
_id: '$image',
29+
_id: { image: "$image", collection: "$collection" },
30+
// _id: '$image',
3031
ids: { $push: '$id' },
3132
collection: { $first: '$collection' },
3233
name: { $first: '$name' },

0 commit comments

Comments
 (0)