Merge pull request 'feat: implement MasterDataService for CRUD operations and database seeding, and update test script command' (#4) from azeem into development
Reviewed-on: https://gitea.maskantech.in/gitea_admin/aeroresolve_backend/pulls/4 Reviewed-by: Syed Waseem khadri Rafai <waseem.khadri@maskatech.com>
This commit is contained in:
@@ -40,7 +40,7 @@ npm run dev
|
||||
### Run tests
|
||||
Run the test suite with the test environment:
|
||||
```bash
|
||||
npm test
|
||||
npm run test
|
||||
```
|
||||
|
||||
### Build commands
|
||||
|
||||
@@ -157,11 +157,23 @@ export class MasterDataService {
|
||||
// ANCILLARY_PURCHASE
|
||||
if (await this.ancillaryPurchaseRepo.count() === 0) {
|
||||
const data = [
|
||||
{ label: 'Extra Baggage', value: 'extra-baggage' },
|
||||
{ label: 'Seat Selection', value: 'seat-selection' },
|
||||
{ label: 'In-Flight Meal', value: 'in-flight-meal' },
|
||||
{ label: 'Preferred Seat', value: 'preferred-seat' },
|
||||
{ label: 'Extra Legroom', value: 'extra-legroom' },
|
||||
{ label: 'Wi-Fi', value: 'wi-fi' },
|
||||
{ label: 'Lounge Access', value: 'lounge-access' },
|
||||
{ label: 'Priority Boarding', value: 'priority-boarding' },
|
||||
{ label: 'Fast Track', value: 'fast-track' },
|
||||
{ label: 'Paid Meal', value: 'paid-meal' },
|
||||
{ label: 'Special Meal', value: 'special-meal' },
|
||||
{ label: 'Extra Baggage', value: 'extra-baggage' },
|
||||
{ label: 'Upgrade Purchase', value: 'upgrade-purchase' },
|
||||
{ label: 'Airport Transfer', value: 'airport-transfer' },
|
||||
{ label: 'Chauffeur Service', value: 'chauffeur-service' },
|
||||
{ label: 'Sports Equipment', value: 'sports-equipment' },
|
||||
{ label: 'Musical Instrument', value: 'musical-instrument' },
|
||||
{ label: 'In-flight Entertainment', value: 'in-flight-entertainment' },
|
||||
{ label: 'Power Outlet', value: 'power-outlet' },
|
||||
{ label: 'Carbon Offset', value: 'carbon-offset' },
|
||||
];
|
||||
await this.ancillaryPurchaseRepo.save(this.ancillaryPurchaseRepo.create(data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user