feat: expose GetTzsForUser

This commit is contained in:
2026-02-10 20:47:31 +00:00
parent 031b01ac37
commit 612d348bf2
+12
View File
@@ -140,3 +140,15 @@ func getUniqueTzFromPatches(patchUrls []string) ([]string, error) {
return tzs[:end], nil return tzs[:end], nil
} }
func GetTzsForUser(username string) ([]string, error) {
patches, err := getPushPatches(username)
if err != nil {
return nil, err
}
tzs, err := getUniqueTzFromPatches(patches)
if err != nil {
return nil, err
}
return tzs, nil
}