deleteUsers(uids: string[]) Not Working
Maintainer thường phản hồi trong vòng 1 ngày
@pragatimodi đang làm issue này rồi.
Từ ngày 10/1/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
deleteUsers is only deleting the first entry of the provided array of uid, see the following:
-
Relevant code snippet:
--- SNIP --- if (httpMethod === "DELETE") { const { id } = event.queryStringParameters; if (!id) return handleError(new Error("Please provide an id."), 405); const uids = id.split(","); return handleDeleteRequest(tenantAuth, uids); } --- SNIP --- const handleDeleteRequest = async (tenantAuth, uids) => { try { console.log("handleDeleteRequest -> uids:", uids); const deleteUserResults = await tenantAuth.deleteUsers(uids); return { body: JSON.stringify({ results: deleteUserResults }), headers: { "Content-Type": "application/json" }, statusCode: 200, }; } catch (error) { return handleError(error); } }; -
uidsvalue:handleDeleteRequest -> uids: [ 'cbHxLH4TtKN8tREDACTED', ' PLrrHeqlphcHP1REDACTED' ] Response with status 200 in 855 ms. -
Server's response:
{"results":{"failureCount":0,"successCount":2,"errors":[]}}
Although success count shows 2 when going to the console only the first user is deleted. It seems that this function is buggy...
- Ngôn ngữ chính
- TypeScript
- Star
- 1.7k
- Fork
- 419
- Merge trung bình
- 4 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-admin-node
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
firebase/firebase-admin-node#3234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[email protected] stable dependency tree fails npm audit via Storage uuid and Firestore google-gaxCó thể đã có người làm @lahirumaramba đã nhận 18 ngày trước. Đang mở
firebase/firebase-admin-node#3221 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: messaging
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
firebase/firebase-admin-node#3215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: messaging
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
firebase/firebase-admin-node#3214 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Firestore] Re-export functions from '@google-cloud/firestore/pipelines'Có thể làm lại được @jonathanedey đã nhận 89 ngày trước và không có pull request nào đang mở. Đang mởapi: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của firebase/firebase-admin-node
Issue tương tự
-
Add: Digi World (Romania) SDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Fission-AI/OpenSpec#1986 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nestjs/docs.nestjs.com#3554 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
publicodes/publicodes#868 ·
-
namespace operations
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
EclipseFdn/open-vsx.org#13488 ·
Maintainer thường phản hồi trong vòng 2 ngày