diff --git a/src/database/database.go b/src/database/database.go index 621f2fa..9102471 100644 --- a/src/database/database.go +++ b/src/database/database.go @@ -3,6 +3,7 @@ package database import ( "context" "os" + "strings" _ "github.com/mattn/go-sqlite3" "github.com/rs/zerolog/log" @@ -39,7 +40,7 @@ func AddFakeData() { SetFiat(true). SetCash(true). SetType(service.TypeExchange). - SetAttributes([]string{AttributeNonCustodialWallet, AttributeOpenSource, AttributeNoPersonalInfoNeeded, AttributeP2P}). + SetAttributes(strings.Join([]string{AttributeNonCustodialWallet, AttributeOpenSource, AttributeNoPersonalInfoNeeded, AttributeP2P, AttributeAPIAvailable, AttributePartnersMayEnforceKYC, AttributeBlockFundsIfFlagged, AttributeKYCForSomeFeatures}, ",")). SetTosHighlights(&[]schema.TosHighlight{sampleTosHighlight}). Save(context.Background()) if err != nil { @@ -64,7 +65,7 @@ func AddFakeData() { SetFiat(true). SetCash(true). SetType(service.TypeExchange). - SetAttributes([]string{AttributeNonCustodialWallet, AttributeOpenSource, AttributeNoPersonalInfoNeeded, AttributeP2P}). + SetAttributes(strings.Join([]string{AttributeNonCustodialWallet, AttributeOpenSource, AttributeNoPersonalInfoNeeded, AttributeP2P}, ",")). SetTosHighlights(&[]schema.TosHighlight{sampleTosHighlight}). Save(context.Background()) if err != nil {