Skip to content

Commit 44bc9e7

Browse files
authored
feat: Update seeders to use EUR (#718)
1 parent 7e3e0a2 commit 44bc9e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

db/seed/campaign/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const campaignFactory = Factory.define<Campaign>(({ associations }) => ({
1919
organizerId: associations.organizerId ?? null,
2020
companyId: associations.companyId ?? null,
2121
approvedById: associations.approvedById || null,
22-
currency: Currency.BGN,
22+
currency: Currency.EUR,
2323
targetAmount: parseInt(faker.finance.amount(2000, 200000)),
2424
allowDonationOnComplete: faker.datatype.boolean(),
2525
paymentReference: getPaymentReference(),

db/seed/payment/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const paymentFactory = Factory.define<Payment>(({ associations }) => ({
1212
extCustomerId: 'cus_' + faker.random.alphaNumeric(8),
1313
extPaymentIntentId: 'pi_' + faker.random.alphaNumeric(8),
1414
extPaymentMethodId: 'pm_' + faker.random.alphaNumeric(8),
15-
currency: Currency.BGN,
15+
currency: Currency.EUR,
1616
billingEmail: faker.internet.email(),
1717
billingName: faker.name.fullName(),
1818
amount: parseInt(faker.finance.amount(2000, 20000)),

db/seed/vault/seed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function vaultSeed() {
2121
vaults.push(
2222
vaultFactory.build(
2323
{
24-
currency: Currency.BGN,
24+
currency: Currency.EUR,
2525
amount: 0, // Initializing with 0 and fill the correct amount after donations have been seeded
2626
},
2727
{

0 commit comments

Comments
 (0)