db/PadManager.js: renamed doesPadExists() -> doesPadExist()

Removed the 's' for consistency with the other `doesFooExist()` manager calls.
Retained an alias for plugins that might be using it.
This commit is contained in:
Ray Bellis 2019-01-25 15:05:12 +00:00
parent a875ca6c30
commit bf9e3f92b5

View file

@ -188,7 +188,7 @@ exports.listAllPads = thenify(function(cb)
});
// checks if a pad exists
exports.doesPadExists = thenify(function(padId, callback)
exports.doesPadExist = thenify(function(padId, callback)
{
db.get("pad:" + padId, function(err, value) {
if (ERR(err, callback)) return;
@ -201,6 +201,9 @@ exports.doesPadExists = thenify(function(padId, callback)
});
});
// alias for backwards compatibility
exports.doesPadExists = exports.doesPadExist;
// returns a sanitized padId, respecting legacy pad id formats
function sanitizePadId(padId, callback) {
var transform_index = arguments[2] || 0;