revert "fix: prevent writing to nonexistent firestore docs"
This reverts commit 46170eb5d3.
This commit is contained in:
@@ -1151,7 +1151,7 @@ func (h *Handler) HandleLivekitWebhook(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
_, err = docRef.Update(ctx, []firestore.Update{
|
_, err = docRef.Update(ctx, []firestore.Update{
|
||||||
{Path: "huddle_active_participants", Value: participantIds},
|
{Path: "huddle_active_participants", Value: participantIds},
|
||||||
}, firestore.Exists)
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("failed to update huddle participants in firestore", "error", err, "path", docPath)
|
slog.Error("failed to update huddle participants in firestore", "error", err, "path", docPath)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user