Commit 1fc809c905b210f4cead06c52bfe5c27a22c479d

Authored by Adhidarma Hadiwinoto
1 parent 72ff1c8e79
Exists in master

Obey req.query.is_outgoing

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/http-listener.js
... ... @@ -57,7 +57,7 @@ function mainHandler(req, res) {
57 57 return;
58 58 }
59 59  
60   - logger.info(`Saving ${req.body.is_outgoing ? 'outgoing' : 'incoming' } message history`);
  60 + logger.info(`Saving ${req.body.is_outgoing || req.query.is_outgoing ? 'outgoing' : 'incoming' } message history`);
61 61  
62 62 messagesArchive.insert(
63 63 {