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

Commit a4db832

Browse files
change bool to varchar
1 parent a470b65 commit a4db832

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/copilotPaymentService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ async function setCopilotPayment (challengeLegacyId, amount, createdBy, updatedB
6666
// Make sure the payment type is set to manual
6767
const paymentType = await getCopilotPaymentType(connection, copilotResourceId)
6868
if (!paymentType) {
69-
await createCopilotPaymentType(connection, copilotResourceId, true, updatedBy || createdBy)
69+
await createCopilotPaymentType(connection, copilotResourceId, 'TRUE', updatedBy || createdBy)
7070
} else if (_.toLower(_.toString(paymentType.value)) === 'false') {
71-
await updateCopilotPaymentType(connection, copilotResourceId, true, updatedBy || createdBy)
71+
await updateCopilotPaymentType(connection, copilotResourceId, 'TRUE', updatedBy || createdBy)
7272
}
7373
if (copilotPayment) {
7474
logger.debug(`Copilot payment exists, updating: ${challengeLegacyId}`)

0 commit comments

Comments
 (0)