1
0

feat(metrics): add active link share logins

This commit is contained in:
kolaente
2023-12-03 15:12:43 +01:00
parent 8a3f16fcfb
commit 0ce110fa52
5 changed files with 87 additions and 51 deletions

View File

@ -110,5 +110,9 @@ func updateActiveUsersFromContext(c echo.Context) (err error) {
return
}
if _, is := auth.(*models.LinkSharing); is {
return metrics.SetLinkShareActive(auth)
}
return metrics.SetUserActive(auth)
}