Expand my Community achievements bar.

SOLVED

Feature request : get latest room function in server to server apis

Avatar

Level 3

Hello,

I would like to be able to get the latest created room, check the number of users in there already, and if there is still place send the user there or create a new one.

At the moment I can achieve this by either

1.make a listRooms call and then a getroominfo for the latest room, but if the number of rooms become large this may slow down the app.

2. I could also store the room stats on my server.

What do you think?

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

#2 sounds like the way to go to me =).

nigel

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

#2 sounds like the way to go to me =).

nigel

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----