mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(releases): search with postgres (#1181)
* fix(releases): search with postgres * fix: validate release push status from filters * fix: add missing import * fix: validate push status if not empty
This commit is contained in:
parent
faaec5625a
commit
06b864da4d
3 changed files with 29 additions and 1 deletions
|
@ -176,6 +176,21 @@ func (r ReleasePushStatus) String() string {
|
|||
}
|
||||
}
|
||||
|
||||
func ValidReleasePushStatus(s string) bool {
|
||||
switch s {
|
||||
case string(ReleasePushStatusPending):
|
||||
return true
|
||||
case string(ReleasePushStatusApproved):
|
||||
return true
|
||||
case string(ReleasePushStatusRejected):
|
||||
return true
|
||||
case string(ReleasePushStatusErr):
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
type ReleaseFilterStatus string
|
||||
|
||||
const (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue