Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | import { Injectable } from '@nestjs/common'; import { GlobalReferenceService } from '../../../domains/mdm/application/services/global-reference.service'; @Injectable() export class CitiesSeed { constructor(private readonly refService: GlobalReferenceService) {} async seed(): Promise<void> { await this.refService.bulkUpsertCities([ { countryCode: 'IN', regionCode: 'IN-TG', cityCode: 'HYD', cityName: 'Hyderabad', cityType: 'metropolitan', timezone: 'Asia/Kolkata', isCapital: true, active: true, }, { countryCode: 'IN', regionCode: 'IN-MH', cityCode: 'MUM', cityName: 'Mumbai', cityType: 'metropolitan', timezone: 'Asia/Kolkata', isCapital: true, active: true, }, { countryCode: 'US', regionCode: 'US-CA', cityCode: 'SFO', cityName: 'San Francisco', cityType: 'city', timezone: 'America/Los_Angeles', isCapital: false, active: true, }, { countryCode: 'US', regionCode: 'US-NY', cityCode: 'NYC', cityName: 'New York', cityType: 'metropolitan', timezone: 'America/New_York', isCapital: false, active: true, }, ]); } } |