We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04fe74d commit 091c77bCopy full SHA for 091c77b
lib/note/index.js
@@ -283,7 +283,7 @@ const updateNote = async (req, res) => {
283
284
if (realtime.isNoteExistsInPool(noteId)) {
285
logger.error('Update note failed: There are online users opening this note.')
286
- return res.status('403').send({ status: 'error', message: 'Update API can only be used when no users is online' })
+ return res.status('403').json({ status: 'error', message: 'Update API can only be used when no users is online' })
287
}
288
289
const now = Date.now()
0 commit comments