people: Rename method to get_by_user_id().

This name is consistent with:

    get_by_email()
    get_by_name()
This commit is contained in:
Steve Howell
2020-02-05 13:30:59 +00:00
committed by Tim Abbott
parent ea9212a92d
commit b8f01f9cda
35 changed files with 88 additions and 88 deletions

View File

@@ -67,7 +67,7 @@ exports.apply_markdown = function (message) {
if (match) {
const user_id = parseInt(match[2], 10);
if (people.is_known_user_id(user_id)) {
person = people.get_person_from_user_id(user_id);
person = people.get_by_user_id(user_id);
if (person.full_name !== match[1]) { // Invalid Syntax
return;
}