mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
changed name of getMapped*4 functions to create*IfNotExistsFor
This commit is contained in:
parent
578f8db311
commit
dc15682a27
5 changed files with 8 additions and 8 deletions
|
@ -31,7 +31,7 @@ var async = require("async");
|
|||
/**********************/
|
||||
|
||||
exports.createGroup = groupManager.createGroup;
|
||||
exports.getMappedGroup4 = groupManager.getMappedGroup4;
|
||||
exports.createGroupIfNotExistsFor = groupManager.createGroupIfNotExistsFor;
|
||||
exports.deleteGroup = groupManager.deleteGroup;
|
||||
exports.listPads = groupManager.listPads;
|
||||
exports.createGroupPad = groupManager.createGroupPad;
|
||||
|
@ -41,7 +41,7 @@ exports.createGroupPad = groupManager.createGroupPad;
|
|||
/**********************/
|
||||
|
||||
exports.createAuthor = authorManager.createAuthor;
|
||||
exports.getMappedAuthor4 = authorManager.getMappedAuthor4;
|
||||
exports.createAuthorIfNotExistsFor = authorManager.createAuthorIfNotExistsFor;
|
||||
|
||||
/**********************/
|
||||
/**SESSION FUNCTIONS***/
|
||||
|
|
|
@ -52,7 +52,7 @@ exports.getAuthor4Token = function (token, callback)
|
|||
* @param {String} token The mapper
|
||||
* @param {Function} callback callback (err, author)
|
||||
*/
|
||||
exports.getMappedAuthor4 = function (authorMapper, name, callback)
|
||||
exports.createAuthorIfNotExistsFor = function (authorMapper, name, callback)
|
||||
{
|
||||
mapAuthorWithDBKey("mapper2author", authorMapper, function(err, author)
|
||||
{
|
||||
|
|
|
@ -71,7 +71,7 @@ exports.createGroup = function(callback)
|
|||
);
|
||||
}
|
||||
|
||||
exports.getMappedGroup4 = function(groupMapper, callback)
|
||||
exports.createGroupIfNotExistsFor = function(groupMapper, callback)
|
||||
{
|
||||
//ensure mapper is optional
|
||||
if(typeof groupMapper != "string")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue