From 4331eed88c9766f9b5b5ae1bad60c281130b19eb Mon Sep 17 00:00:00 2001 From: Akshay Gaikwad Date: Wed, 27 Apr 2022 18:33:03 +0530 Subject: [PATCH] [synchronizer] Map provider name to id in kratos confing --- scripts/kratos/providers_sync.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/kratos/providers_sync.go b/scripts/kratos/providers_sync.go index 98a0b2e..60cf665 100644 --- a/scripts/kratos/providers_sync.go +++ b/scripts/kratos/providers_sync.go @@ -8,7 +8,6 @@ import ( "time" "github.com/cloudflare/cfssl/log" - "github.com/google/uuid" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect/pgdialect" "github.com/uptrace/bun/driver/pgdriver" @@ -16,7 +15,7 @@ import ( ) type Provider struct { - Id uuid.UUID `bun:"id,type:uuid"` + Id string `bun:"name"` Provider string `bun:"provider_name,notnull"` MapperURL string `bun:"mapper_url" yaml:"mapper_url"` ClientId string `bun:"client_id,notnull" yaml:"client_id"`