From b91ae0880d29fd5ba47d6ac6163eb600ec09bfee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 21 Oct 2021 15:40:42 -0400 Subject: [PATCH] feat: add method name to deprecation message --- src/socket.io/topics/infinitescroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket.io/topics/infinitescroll.js b/src/socket.io/topics/infinitescroll.js index 93d2bbeb49..c20730229f 100644 --- a/src/socket.io/topics/infinitescroll.js +++ b/src/socket.io/topics/infinitescroll.js @@ -64,7 +64,7 @@ module.exports = function (SocketTopics) { }; SocketTopics.loadMoreSortedTopics = async function (socket, data) { - winston.warn('[deprecated] use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0 + winston.warn('[deprecated] SocketTopics.loadMoreSortedTopics use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0 if (!data || !utils.isNumber(data.after) || parseInt(data.after, 10) < 0) { throw new Error('[[error:invalid-data]]'); } @@ -88,7 +88,7 @@ module.exports = function (SocketTopics) { }; SocketTopics.loadMoreFromSet = async function (socket, data) { - winston.warn('[deprecated] use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0 + winston.warn('[deprecated] SocketTopics.loadMoreFromSet use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0 if (!data || !utils.isNumber(data.after) || parseInt(data.after, 10) < 0 || !data.set) { throw new Error('[[error:invalid-data]]'); }