mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Enhanced the Example for the API Method getPadID and make the return value consistent to other functions
This commit is contained in:
parent
fffdde0c59
commit
d42a9eb3a6
1 changed files with 2 additions and 2 deletions
|
@ -645,7 +645,7 @@ getPadID(roID) returns the padID of a pad based on the readonlyID(roID)
|
||||||
|
|
||||||
Example returns:
|
Example returns:
|
||||||
|
|
||||||
{code: 0, message:"ok", data: null}
|
{code: 0, message:"ok", data: {padID: padID}}
|
||||||
{code: 1, message:"padID does not exist", data: null}
|
{code: 1, message:"padID does not exist", data: null}
|
||||||
*/
|
*/
|
||||||
exports.getPadID = function(roID, callback)
|
exports.getPadID = function(roID, callback)
|
||||||
|
@ -661,7 +661,7 @@ exports.getPadID = function(roID, callback)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
callback(null, {PadID: padID});
|
callback(null, {padID: padID});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue