Skip to content

Resolve "BUG: message counts not incremented if they don't yet exist" (#63)

aguestuser requested to merge 63-bug-message-counts-not-incremented into master

Closes #63 (closed)


BUG: message counts not incremented

  • CAUSE: count incrementing functions assume a message count already exist for each channel. if such a count does not exist, nothing will be incremented (because no messageCount record will be found)
  • FIX: introduce a hasOne/belongsToOne relationship between channel and messageCount; use it to create an empty messageCount record for each channel whenever one is created in channelRepository#create
Edited by aguestuser

Merge request reports