refactor: Move pm_with_uri to hash_util.

This commit is contained in:
Steve Howell
2018-08-04 14:46:17 +00:00
committed by Tim Abbott
parent 9accc2a3b6
commit fc62e554ce
7 changed files with 10 additions and 13 deletions

View File

@@ -86,6 +86,11 @@ exports.operators_to_hash = function (operators) {
return hash;
};
exports.pm_with_uri = function (reply_to) {
return exports.operators_to_hash([
{operator: 'pm-with', operand: reply_to},
]);
};
return exports;