UserSync: Avoid UpdateLastSeenAt with invalid user ids (#72776)

* avoid user zero

* more errors

* more tests

* split
This commit is contained in:
Ryan McKinley
2023-08-02 23:26:02 -07:00
committed by GitHub
parent 1b93f3c0ab
commit 7431c0ddb1
4 changed files with 29 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ var (
ErrProtectedUser = errors.New("cannot adopt protected user")
ErrNoUniqueID = errors.New("identifying id not found")
ErrLastSeenUpToDate = errors.New("last seen is already up to date")
ErrUpdateInvalidID = errors.New("unable to update invalid id")
)
type User struct {