| Total Complexity | 4 |
| Complexity/F | 2 |
| Lines of Code | 13 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** |
||
| 2 | * @private |
||
| 3 | */ |
||
| 4 | export default class UserActivityService { |
||
| 5 | updateLastUserActivity(date?: Date): void { |
||
| 6 | if (date === undefined) { |
||
| 7 | date = new Date(); |
||
| 8 | } |
||
| 9 | |||
| 10 | Shopware.Context.app.lastActivity = Math.round(+date / 1000); |
||
| 11 | } |
||
| 12 | } |
||
| 13 |