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,
                },
              });

              console.log("CreatedQuotation: ", createdQuotation);
              fs.appendFileSync(
                "output.txt",
                `Quotation: ${util.inspect(createdQuotation, {
                  depth: null,
                })}\n`
              );
              fs.appendFileSync(
                "output.txt",
`Quotation Quotes: ${util.inspect(createdQuotation!.quotes, { depth: null })}\n`
);              

              await Promise.all(
                quotation.quotes!.map(async (quote: any, index) => {
                  // if (!quote || !quote.id) {
                  //   console.log("Skipping quote with missing or null ID");
                  //   return;
                  // }
                  
                   fs.appendFileSync(
                     "outputInside.txt",
                     `Quotation Quotes: ${util.inspect(
                       quotation!.quotes,
                       { depth: null }
                     )}\n`
                   );              

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

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

                  cleanedQuotePromises.push(
                    tx.cleanedQuote.create({
                      data: {
                        quoteId: quote.id,
                        quotationId: createdQuotation.id,
                        price: quote.price,
                        measurementUnit: item.SmUCode,
                        quantity: quote.quantity,
                        questionnaireId: createdQuotation.questionnaireId,
                        itemCode: createdQuotation.itemCode,
                      },
                    })
                  );
                })
              );
based on this code section the file writers above the     "await Promise.all(
                quotation.quotes!.map(async (quote: any, index) " return the createdquotations correctly with their asscociated quotes and the quoteIds are created as well and returned but when it goes into     await Promise.all(
                quotation.quotes!.map(async (quote: any, index) => { and i try to log the quoteids they are undefined