add comments, fix user expiry log spam

now actually removes the already deleted user from the expiry list.
This commit is contained in:
Harvey Tindall
2021-03-21 22:50:33 +00:00
parent e351c35cc8
commit 1a6d78352c
4 changed files with 12 additions and 5 deletions
+3 -1
View File
@@ -11,6 +11,7 @@ type magicParse struct {
Parsed time.Time `json:"parseme"`
}
// Time embeds time.Time with a custom JSON Unmarshal method to work with Jellyfin & Emby's time formatting.
type Time struct {
time.Time
}
@@ -62,7 +63,8 @@ type User struct {
LastLoginDate Time `json:"LastLoginDate"`
LastActivityDate Time `json:"LastActivityDate"`
Configuration Configuration `json:"Configuration"`
Policy Policy `json:"Policy"`
// Policy stores the user's permissions.
Policy Policy `json:"Policy"`
}
type SessionInfo struct {