Skip to content

Commit

Permalink
Update internal/data/spicedb.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Marcantonio <[email protected]>
  • Loading branch information
akoserwal and lennysgarage authored Oct 4, 2024
1 parent be0dce1 commit 8653913
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/data/spicedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ func (s *SpiceDbRepository) ImportBulkTuples(stream grpc.ClientStreamingServer[a
inputRelationships := (*req).Tuples
batch := []*v1.Relationship{}
for _, tuple := range inputRelationships {
tuple.Relation = addRelationPrefix(tuple.Relation, relationPrefix)
batch = append(batch, createSpiceDbRelationship(tuple))
}
client, err := s.client.ImportBulkRelationships(context.Background())
Expand Down

0 comments on commit 8653913

Please sign in to comment.