Skip to content

Commit 360d5ef

Browse files
authored
Patch code example (#35746)
1 parent 57254e8 commit 360d5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/blazor/progressive-web-app/push-notifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ app.MapPut("/notifications/subscribe",
160160

161161
// Store the new subscription
162162
subscription.UserId = userId;
163-
db.NotificationSubscriptions.Attach(subscription);
163+
db.NotificationSubscriptions.Add(subscription);
164164

165165
await db.SaveChangesAsync();
166166

0 commit comments

Comments
 (0)