-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
backend-local/lib/game/api/user.js
Lines 318 to 327 in 1997657
| router.get('/memory-segment', auth.tokenAuth, jsonResponse((request) => { | |
| var id = parseInt(request.query.segment); | |
| if(_.isNaN(id) || id < 0 || id > 99) { | |
| return q.reject('invalid segment ID'); | |
| } | |
| return env.hget(env.keys.MEMORY_SEGMENTS+request.user._id, id) | |
| .then(data => { | |
| return {data}; | |
| }) | |
| })); |
The memory segment api is missing the multiple segment option, for example, on MMO I can do
GET /api/user/memory-segment?segment=1,2
And get back a structure like this: { ok: 1, data: [ "segment1", "segment2" ] }
The private server is missing this feature, and only returns the first segment .
On that note, it returning a string for one and array for multiple is more annoying with static languages, buts thats a different issue :)
Metadata
Metadata
Assignees
Labels
No labels