Skip to content

Commit

Permalink
Used sorted id list for profiles request
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Sep 10, 2024
1 parent 36272bf commit d9f385c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 24 deletions.
63 changes: 43 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulms/api-clients",
"version": "7.17.0",
"version": "7.18.0",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/foxford/ulms-api-clients-js#readme",
Expand Down Expand Up @@ -36,14 +36,14 @@
},
"dependencies": {
"axios": "1.6.2",
"debug": "4.3.4",
"debug": "4.3.7",
"events": "3.3.0",
"lodash": "4.17.21",
"mime": "2.6.0",
"mqtt": "3.0.0",
"mqtt-pattern": "1.2.0",
"nats.ws": "1.7.2",
"p-queue": "7.4.1",
"p-queue": "8.0.1",
"uuid": "8.3.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/profile-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ProfileService {

for (const keyChunk of keyChunks) {
const [, scope] = keyChunk[0].split(':')
const ids = keyChunk.map((_) => _.split(':')[0])
const ids = keyChunk.map((_) => _.split(':')[0]).sort()

for (const key of keyChunk) {
this.profileMap[key].state = 'pending'
Expand Down

0 comments on commit d9f385c

Please sign in to comment.