Skip to content

Commit 091c77b

Browse files
committed
Refactor, change response type to json in update-api user online checking
Signed-off-by: James Tsai <jamesscamel@gmail.com>
1 parent 04fe74d commit 091c77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/note/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ const updateNote = async (req, res) => {
283283

284284
if (realtime.isNoteExistsInPool(noteId)) {
285285
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' })
286+
return res.status('403').json({ status: 'error', message: 'Update API can only be used when no users is online' })
287287
}
288288

289289
const now = Date.now()

0 commit comments

Comments
 (0)