mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-03-20 11:40:32 -05:00
* refactor: remove v0 paths from codebase * remove uiVersion references * refactor: remove v0-exclusive database queries * remove webhook test * chore: move api token repository * chore: move dispatcher repository to v1 * chore: move health repository to v1 * chore: remove event repository * remove some unused repositories * chore: move mq implementation to v1 * chore: consolidate rate limit implementations * chore: move security check to v1 repository * chore: move slack to v1 repository * chore: move sns implementation to v1 repository * clean up step repository * chore: move tenant invite to v1 repository * chore: move limits, workers, tenant alerts to v1 repository * chore: move user, tenant, userSession to v1 repository * chore: move ticker to v1 repository * chore: move scheduled workflows to v1 repository * chore: remove workflows * fix: remove pointer for limits config file * propagate cache value to api token * propagate cache durations
14 lines
204 B
Go
14 lines
204 B
Go
package sqlchelpers
|
|
|
|
import "github.com/jackc/pgx/v5/pgtype"
|
|
|
|
func BoolFromBoolean(v bool) pgtype.Bool {
|
|
var bgBool pgtype.Bool
|
|
|
|
if err := bgBool.Scan(v); err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
return bgBool
|
|
}
|