Skip to content

Commit c0a3142

Browse files
committed
sort
1 parent 4e6671e commit c0a3142

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/api/functions/membership.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ export async function getExternalMemberList(
131131
}
132132
return Items.map((x) => unmarshall(x))
133133
.filter((x) => !!x)
134-
.map((x) => x.netId);
134+
.map((x) => x.netId)
135+
.sort();
135136
}
136137

137138
export async function checkExternalMembership(

src/api/routes/membership.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const membershipPlugin: FastifyPluginAsync = async (fastify, _options) => {
250250
.filter((x) => !!x)
251251
.map((x) => x.memberList),
252252
),
253-
];
253+
].sort();
254254
return reply.send(deduped);
255255
},
256256
);

0 commit comments

Comments
 (0)