refactor: client-side to use flag notes API

This commit is contained in:
Julian Lam
2021-07-16 13:51:37 -04:00
parent cc6cbfcdc4
commit ef4e74bfc8
2 changed files with 17 additions and 26 deletions

View File

@@ -41,6 +41,7 @@ SocketFlags.appendNote = async function (socket, data) {
};
SocketFlags.deleteNote = async function (socket, data) {
sockets.warnDeprecated(socket, 'DELETE /api/v3/flags/:flagId/notes/:datetime');
if (!data || !(data.flagId && data.datetime)) {
throw new Error('[[error:invalid-data]]');
}