mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
API: Add optional authorId
param to mutation functions
This commit is contained in:
parent
50fafe608b
commit
aa286b7dbd
6 changed files with 93 additions and 42 deletions
|
@ -103,7 +103,7 @@ exports.createGroupIfNotExistsFor = async (groupMapper) => {
|
|||
return result;
|
||||
};
|
||||
|
||||
exports.createGroupPad = async (groupID, padName, text) => {
|
||||
exports.createGroupPad = async (groupID, padName, text, authorId = '') => {
|
||||
// create the padID
|
||||
const padID = `${groupID}$${padName}`;
|
||||
|
||||
|
@ -123,7 +123,7 @@ exports.createGroupPad = async (groupID, padName, text) => {
|
|||
}
|
||||
|
||||
// create the pad
|
||||
await padManager.getPad(padID, text);
|
||||
await padManager.getPad(padID, text, authorId);
|
||||
|
||||
// create an entry in the group for this pad
|
||||
await db.setSub(`group:${groupID}`, ['pads', padID], 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue