Skip to content

Commit cf80150

Browse files
Merge pull request #3 from DarkKnight1302/copilot/fix-e573d9a7-0e1e-459d-8d27-abdd378c856a
Fix UpsertSlotData to include partition key for Cosmos DB operations
2 parents abe1bdd + 26423d0 commit cf80150

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TrafficEscape2.0/Repositories/RouteSlotRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private string GenerateUid(string fromPlaceId, string toPlaceId, int dayOfWeek,
6262
public async Task UpsertSlotData(RouteSlots routeSlots)
6363
{
6464
var container = GetContainer();
65-
await container.UpsertItemAsync(routeSlots).ConfigureAwait(false);
65+
await container.UpsertItemAsync(routeSlots, new PartitionKey(routeSlots.dayOfWeek)).ConfigureAwait(false);
6666
}
6767

6868
private Container GetContainer()

0 commit comments

Comments
 (0)