Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 4c4dbc3

Browse files
comment out non-working changes
1 parent d6a221b commit 4c4dbc3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/services/copilotPaymentService.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ async function setCopilotPayment (challengeLegacyId, amount, createdBy, updatedB
6464
const copilotPayment = await getCopilotPayment(connection, challengeLegacyId)
6565
if (amount != null && amount >= 0) {
6666
// Make sure the payment type is set to manual
67-
const paymentType = await getCopilotPaymentType(connection, copilotResourceId)
68-
if (!paymentType) {
69-
await createCopilotPaymentType(connection, copilotResourceId, 'TRUE', updatedBy || createdBy)
70-
} else if (_.toLower(_.toString(paymentType.value)) !== 'true') {
71-
await updateCopilotPaymentType(connection, copilotResourceId, 'TRUE', updatedBy || createdBy)
72-
}
67+
// TODO: Figure out why data is not saved in IFX even when there are no errors
68+
// const paymentType = await getCopilotPaymentType(connection, copilotResourceId)
69+
// if (!paymentType) {
70+
// await createCopilotPaymentType(connection, copilotResourceId, 'TRUE', updatedBy || createdBy)
71+
// } else if (_.toLower(_.toString(paymentType.value)) !== 'true') {
72+
// await updateCopilotPaymentType(connection, copilotResourceId, 'TRUE', updatedBy || createdBy)
73+
// }
7374
if (copilotPayment) {
7475
logger.debug(`Copilot payment exists, updating: ${challengeLegacyId}`)
7576
return updateCopilotPayment(connection, copilotResourceId, challengeLegacyId, amount, updatedBy)

0 commit comments

Comments
 (0)