* Dev/internal: clear per-user activity status local cache. Does not delete server activity. * Gated behind isInternal() or non-production environment.
({ prefix } = {})
| 716 | * Gated behind isInternal() or non-production environment. |
| 717 | */ |
| 718 | clearActivityStatusCache ({ prefix } = {}) { |
| 719 | if (!this.isInternal() && globalVar.application?.isProduction()) { return } |
| 720 | const userId = this.get('_id') || this.id |
| 721 | if (!userId) { return } |
| 722 | userUtils.clearActivityStatusCache(userId, { prefix }) |
| 723 | } |
| 724 | |
| 725 | saveCookieConsent (action, description = '') { |
| 726 | // Save cookie consent to user's consentHistory |
no test coverage detected