Compare commits
No commits in common. "9139c77c5f2b4ccbe2a9dc565bb69a243f562c37" and "0cda5970019b455f8ae024c0e7627e49a325a596" have entirely different histories.
9139c77c5f
...
0cda597001
1 changed files with 5 additions and 5 deletions
|
|
@ -101,14 +101,14 @@ func sqlDate2oapi(p_date pgtype.Timestamptz) *time.Time {
|
|||
func sql2usertitlestatus(s sqlc.UsertitleStatusT) (oapi.UserTitleStatus, error) {
|
||||
var status oapi.UserTitleStatus
|
||||
|
||||
switch s {
|
||||
case sqlc.UsertitleStatusTFinished:
|
||||
switch status {
|
||||
case "finished":
|
||||
status = oapi.UserTitleStatusFinished
|
||||
case sqlc.UsertitleStatusTDropped:
|
||||
case "dropped":
|
||||
status = oapi.UserTitleStatusDropped
|
||||
case sqlc.UsertitleStatusTPlanned:
|
||||
case "planned":
|
||||
status = oapi.UserTitleStatusPlanned
|
||||
case sqlc.UsertitleStatusTInProgress:
|
||||
case "in-progress":
|
||||
status = oapi.UserTitleStatusInProgress
|
||||
default:
|
||||
return status, fmt.Errorf("unexpected tittle status: %s", s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue