const createdQuotation = await tx.quotation.create({
                data: {
                  questionnaireId: quotation.questionnaireId,
                  collectorId: req.user!.id,
                  itemCode: quotation!.itemCode,
                  marketplaceCode: quotation.marketplaceCode!,
                  quotes: {
                    createMany: {
                      data: quotation.quotes!.map((quote) => ({
                        ...quote,
                        shopContactName: "Imported",
                        shopContactPhone: "Imported",
                        shopLatitude: "Imputated",
                        shopLongitude: "Imputated",
                        measurementUnit: item.UoMCode,
                      })),
                    },
                  },
                  status: QuotationStatus.BRANCH_APPROVED,
                  creationStatus: QuotationCreationStatus.IMPORTED,
                },
                select: {
                  id: true,
                  questionnaireId: true,
                  itemCode: true,
                  quotes: true,
                },
              });       await Promise.all(
                createdQuotation.quotes!.map(async(quote) => {
                     const quoteId = quote.id;
                     
                  // if (!quote || !quote.id) {
                  //   console.log("Skipping quote with missing or null ID");
                  //   return
                  // }

                  fs.appendFileSync(
                    "outputInside.txt",
                    `Quotation Quotes: ${util.inspect(createdQuotation!.quotes, {
                      depth: null,
                    })}\n`
                  );
                  fs.appendFileSync(
                    "outputId.txt",
                    `Quotation Quotes: ${util.inspect(quoteId, {
                      depth: null,
                    })}\n`
                  );

                  fs.appendFileSync(
                    "outputQuotes.txt",
                    `Quotes: ${util.inspect(
                      createdQuotation.quotes!.map((quote: any) => quote.id),
                      { depth: null }
                    )}\n`
                  );

                  interpolatedQuotePromises.push(
                     tx.interpolatedQuote.create({
                      data: {
                        quoteId: quoteId,
                        quotationId: createdQuotation.id,
                        price: quote.price,
                        measurementUnit: item.SmUCode,
                        quantity: quote.quantity,
                      },
                    })
                  );

                  cleanedQuotePromises.push(
                     tx.cleanedQuote.create({
                      data: {
                        quoteId: quoteId,
                        quotationId: createdQuotation.id,
                        price: quote.price,
                        measurementUnit: item.SmUCode,
                        quantity: quote.quantity,
                        questionnaireId: createdQuotation.questionnaireId,
                        itemCode: createdQuotation.itemCode,
                      },
                    })
                  );
                })
              ); based on this code the quoteId which is being accessed fromt he createdQuotation is throwing errors when trying to create interpolatedquotes