mirror of https://github.com/status-im/codimd.git
Refactor, change response type to json in update-api user online checking
Signed-off-by: James Tsai <jamesscamel@gmail.com>
This commit is contained in:
parent
04fe74d520
commit
091c77bdb1
|
@ -283,7 +283,7 @@ const updateNote = async (req, res) => {
|
|||
|
||||
if (realtime.isNoteExistsInPool(noteId)) {
|
||||
logger.error('Update note failed: There are online users opening this note.')
|
||||
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' })
|
||||
}
|
||||
|
||||
const now = Date.now()
|
||||
|
|
Loading…
Reference in New Issue