Last active
August 16, 2024 04:43
-
-
Save EMSeek/c315cef92fc5f1b6b1bdff48cc43949d to your computer and use it in GitHub Desktop.
jvs
This file contains hidden or 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
| update_promocode(promocode) { | |
| if (promocode.expires) { | |
| update_promocodes(code => promocode, expiry_date => promocode.expires); | |
| } | |
| if (promocode.maxredeem) { | |
| update_promocodes(code => promocode, max_redemption => promocode.maxredeem); | |
| } | |
| return true; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment