Skip to content

Commit 412c6f8

Browse files
authored
chore(firestore-stripe-invoices): Tiny refactoring
1 parent b4596ae commit 412c6f8

File tree

1 file changed

+2
-2
lines changed
  • firestore-stripe-invoices/functions/src

1 file changed

+2
-2
lines changed

firestore-stripe-invoices/functions/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const createInvoice = async function ({
7474
);
7575

7676
// Create the individual invoice items for this customer from the items in payload
77-
const items: Array<Stripe.InvoiceItem> = await Promise.all(itemPromises);
77+
await Promise.all(itemPromises);
7878

7979
const invoiceCreateParams: Stripe.InvoiceCreateParams = {
8080
customer: customer.id,
@@ -255,7 +255,7 @@ export const updateInvoice = functions.handler.https.onRequest(
255255

256256
logs.startInvoiceUpdate(eventType);
257257

258-
let invoicesInFirestore = await admin
258+
const invoicesInFirestore = await admin
259259
.firestore()
260260
.collection(config.invoicesCollectionPath)
261261
.where('stripeInvoiceId', '==', invoice.id)

0 commit comments

Comments
 (0)