feat(kol): repository layer for all KOL tables
This commit is contained in:
@@ -58,6 +58,14 @@ func timeFromTimestamp(value pgtype.Timestamptz) time.Time {
|
||||
return value.Time
|
||||
}
|
||||
|
||||
func optionalTime(value pgtype.Timestamptz) *time.Time {
|
||||
if !value.Valid {
|
||||
return nil
|
||||
}
|
||||
t := value.Time
|
||||
return &t
|
||||
}
|
||||
|
||||
func pgText(value *string) pgtype.Text {
|
||||
if value == nil {
|
||||
return pgtype.Text{}
|
||||
|
||||
Reference in New Issue
Block a user