Created
April 8, 2020 13:48
-
-
Save GreenGeorge/442ece84f116a343daac3fe4b95b83fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
const raffleObject = { | |
product: product.handle, | |
variant: form.size, | |
timestamp, | |
identity_no: identityNo, | |
instagram_handle: instagramHandle, | |
phone, | |
}; | |
CF.customer.set('raffle', [raffleObject]); | |
const result = await CF.customer.save({ | |
redirect: true, | |
saveColumns: [ | |
'raffle_codes', | |
'identity_no', | |
'phone', | |
'instagram_handle', | |
'raffle', | |
], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment