This commit is contained in:
Julian Lam
2021-07-07 09:33:24 -04:00
parent f17625fb34
commit e03782f218

View File

@@ -148,7 +148,7 @@ SocketUser.saveSettings = async function (socket, data) {
}; };
SocketUser.setTopicSort = async function (socket, sort) { SocketUser.setTopicSort = async function (socket, sort) {
sockets.warnDeprecated(socket, 'PUT /api/v3/users/:uid/setting/topicPostSort'); sockets.warnDeprecated(socket, 'PUT /api/v3/users/:uid/settings');
await api.users.updateSetting(socket, { await api.users.updateSetting(socket, {
uid: socket.uid, uid: socket.uid,
setting: 'topicPostSort', setting: 'topicPostSort',
@@ -157,7 +157,7 @@ SocketUser.setTopicSort = async function (socket, sort) {
}; };
SocketUser.setCategorySort = async function (socket, sort) { SocketUser.setCategorySort = async function (socket, sort) {
sockets.warnDeprecated(socket, 'PUT /api/v3/users/:uid/setting/categoryTopicSort'); sockets.warnDeprecated(socket, 'PUT /api/v3/users/:uid/settings');
await api.users.updateSetting(socket, { await api.users.updateSetting(socket, {
uid: socket.uid, uid: socket.uid,
setting: 'categoryTopicSort', setting: 'categoryTopicSort',