Skip to content

Commit

Permalink
Fix ci issues
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brennan2005 committed Mar 13, 2024
1 parent 361937e commit 1a5d3f5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/src/search/pinecone.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func (c *PineconeClient) Seed(db *gorm.DB) error {
}

searchables := make([]Searchable, len(clubs))
for _, club := range clubs {
searchables = append(searchables, &club)
for i := range clubs {
searchables = append(searchables, &clubs[i])
}

var chunks [][]Searchable
Expand Down
2 changes: 1 addition & 1 deletion backend/src/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func newFiberApp(appSettings config.ApplicationSettings) *fiber.App {
})

app.Use(cors.New(cors.Config{
AllowOrigins: "http://localhost:5173",
AllowOrigins: fmt.Sprintf("http://%s:%d", appSettings.Host, appSettings.Port),
AllowCredentials: true,
}))
app.Use(requestid.New())
Expand Down
1 change: 0 additions & 1 deletion backend/src/transactions/club.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ func CreateClub(db *gorm.DB, pinecone search.PineconeClientInterface, userId uui
}

if err := pinecone.Upsert([]search.Searchable{&club}); err != nil {

tx.Rollback()
return nil, &errors.FailedToCreateClub
}
Expand Down
Binary file removed backend/tests/api/__debug_bin940129140
Binary file not shown.

0 comments on commit 1a5d3f5

Please sign in to comment.