Skip to content

Commit

Permalink
Returning any.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jul 26, 2024
1 parent ce395bc commit 38f9608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debezium/converters/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/artie-labs/transfer/lib/typing/ext"
)

func ConvertDateTimeWithTimezone(value any) (*ext.ExtendedTime, error) {
func ConvertDateTimeWithTimezone(value any) (any, error) {
dtString, isOk := value.(string)
if !isOk {
return nil, fmt.Errorf("expected string got '%v' with type %T", value, value)
Expand Down Expand Up @@ -41,7 +41,7 @@ var SupportedTimeWithTimezoneFormats = []string{
"15:04:05.000000Z", // microseconds
}

func ConvertTimeWithTimezone(value any) (*ext.ExtendedTime, error) {
func ConvertTimeWithTimezone(value any) (any, error) {
valString, isOk := value.(string)
if !isOk {
return nil, fmt.Errorf("expected string got '%v' with type %T", value, value)
Expand Down

0 comments on commit 38f9608

Please sign in to comment.