From d024ff9be97f20974a5aa8b8efa4ee421e7dbe02 Mon Sep 17 00:00:00 2001
From: Daniel Petri Rocha <33319791+danielpetri1@users.noreply.github.com>
Date: Tue, 1 Nov 2022 18:23:43 +0100
Subject: [PATCH] Include padId in proxy's author name
Prevents the API from locking when multiple pads are using the proxy.
---
lib/express/proxy.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/express/proxy.js b/lib/express/proxy.js
index b9b5ade..55ab7d0 100644
--- a/lib/express/proxy.js
+++ b/lib/express/proxy.js
@@ -39,7 +39,7 @@ proxy.on('proxyReq', (proxyReq, req) => {
const web = (req, res) => {
const { padId } = req.params;
const { groupId } = parsePadId(padId);
- api.call('createAuthor', { name: 'proxy' }).then(response => {
+ api.call('createAuthor', { name: `proxy-${padId}` }).then(response => {
const authorId = response.authorID;
logger.trace(ids.USER, 'created', { groupId, authorId });
api.call('createSession', {