code-corps / code-corps-api

Elixir/Phoenix API for Code Corps.
https://www.codecorps.org
MIT License
234 stars 86 forks source link

Add unread_conversations counter cache to user model #1316

Open joshsmith opened 6 years ago

joshsmith commented 6 years ago

Problem

The User should have an unread_conversations counter cache added to its schema.

This should update any time the user has a conversation update and they've not yet read it.

Blocked by having a read_at for conversations.