add release

This commit is contained in:
Simon Larsen 2023-08-08 14:06:08 +01:00
parent 60ba22b15e
commit bba2fa2ed3
No known key found for this signature in database
GPG key ID: AB45983AA9C81CDE

View file

@ -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);