try to fix this spaghetti of a code
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ function createLobbyService(repository, config) {
|
||||
const membershipMutation = ['lobby:create', 'lobby:join', 'lobby:leave'].includes(message.type);
|
||||
return queue.run([...(membershipMutation ? ['membership'] : []), ...(username ? [`account:${username}`] : []),
|
||||
...(message.lobbyId ? [`lobby:${message.lobbyId}`] : [])], async () => {
|
||||
const id = `${username || 'system'}:${message.requestId}`;
|
||||
const id = `${username ? `user:${username}` : 'system'}:${message.requestId}`;
|
||||
const fingerprint = hash(JSON.stringify(canonical(message)));
|
||||
const prior = await repository.command(id);
|
||||
if (prior) {
|
||||
|
||||
Reference in New Issue
Block a user