UPDATE: Auth module, User module
Some checks failed
Build and Release / release (push) Failing after 1m25s
Some checks failed
Build and Release / release (push) Failing after 1m25s
This commit is contained in:
@@ -13,6 +13,15 @@ func UUIDToString(v pgtype.UUID) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func StringToUUID(s string) (pgtype.UUID, error) {
|
||||
var pgId pgtype.UUID
|
||||
err := pgId.Scan(s)
|
||||
if err != nil {
|
||||
return pgtype.UUID{}, err
|
||||
}
|
||||
return pgId, nil
|
||||
}
|
||||
|
||||
func TextToString(v pgtype.Text) string {
|
||||
if v.Valid {
|
||||
return v.String
|
||||
|
||||
Reference in New Issue
Block a user