mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-16 23:00:51 +00:00
add release
This commit is contained in:
parent
60ba22b15e
commit
bba2fa2ed3
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// To run this script:
|
||||
// To run this script:
|
||||
// export $(grep -v '^#' config.env | xargs) && ts-node ./Scripts/PaymentProvider/CouponCodeGenerator.ts > coupons.csv
|
||||
|
||||
import BillingService from 'CommonServer/Services/BillingService';
|
||||
|
|
@ -7,10 +7,10 @@ import Sleep from 'Common/Types/Sleep';
|
|||
const main: Function = async () => {
|
||||
for (let i = 0; i < 2000; i++) {
|
||||
const code = await BillingService.generateCouponCode({
|
||||
name: "Name",
|
||||
name: 'Name',
|
||||
percentOff: 100,
|
||||
durationInMonths: 12,
|
||||
maxRedemptions: 1
|
||||
maxRedemptions: 1,
|
||||
});
|
||||
console.log(code);
|
||||
await Sleep.sleep(50);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue