Skip to content

Commit

Permalink
Include padId in proxy's author name
Browse files Browse the repository at this point in the history
Prevents the API from locking when multiple pads are using the proxy.
  • Loading branch information
danielpetri1 authored Nov 1, 2022
1 parent 2772246 commit d024ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit d024ff9

Please sign in to comment.