Skip to content

Commit

Permalink
feat: SKFP-1421 fix sort conf
Browse files Browse the repository at this point in the history
  • Loading branch information
celinepelletier committed Jan 14, 2025
1 parent 80fae9f commit 2f96b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/sortConf.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'node:fs';
import assert from 'node:assert/strict';
import fs from 'node:fs';

const sortConf = conf => {
const indices = conf.indices;
Expand All @@ -15,7 +15,7 @@ const sortConf = conf => {
.filter(m => m.graphqlField === x)
.map(x => x.field)
.sort()
.map(x => ({ ...mutations.find(m => m.field === x) }));
.map(y => ({ ...mutations.find(m => m.field === y && m.graphqlField === x) }));
return [...xs, ...elWithSameGqlField];
}, []);

Expand Down

0 comments on commit 2f96b9f

Please sign in to comment.