refactor(api): move Clock abstraction from travel to shared
This commit is contained in:
@@ -3,7 +3,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
|
|||||||
import { Character } from '../characters/entities/character.entity';
|
import { Character } from '../characters/entities/character.entity';
|
||||||
import { LocationConnection } from '../world/entities/location-connection.entity';
|
import { LocationConnection } from '../world/entities/location-connection.entity';
|
||||||
import { LocationDefinition } from '../world/entities/location-definition.entity';
|
import { LocationDefinition } from '../world/entities/location-definition.entity';
|
||||||
import { CLOCK, systemClock } from './clock';
|
import { CLOCK, systemClock } from '../shared/clock';
|
||||||
import { Travel } from './entities/travel.entity';
|
import { Travel } from './entities/travel.entity';
|
||||||
import { TravelController } from './travel.controller';
|
import { TravelController } from './travel.controller';
|
||||||
import { TravelService } from './travel.service';
|
import { TravelService } from './travel.service';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
} from '../database/seeds/vertical-slice.constants';
|
} from '../database/seeds/vertical-slice.constants';
|
||||||
import { LocationConnection } from '../world/entities/location-connection.entity';
|
import { LocationConnection } from '../world/entities/location-connection.entity';
|
||||||
import { LocationDefinition } from '../world/entities/location-definition.entity';
|
import { LocationDefinition } from '../world/entities/location-definition.entity';
|
||||||
import { Clock } from './clock';
|
import { Clock } from '../shared/clock';
|
||||||
import { Travel } from './entities/travel.entity';
|
import { Travel } from './entities/travel.entity';
|
||||||
import { TravelDomainError } from './travel.errors';
|
import { TravelDomainError } from './travel.errors';
|
||||||
import { TravelService } from './travel.service';
|
import { TravelService } from './travel.service';
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import { DataSource, Repository } from 'typeorm';
|
|||||||
import { Character } from '../characters/entities/character.entity';
|
import { Character } from '../characters/entities/character.entity';
|
||||||
import { LocationConnection } from '../world/entities/location-connection.entity';
|
import { LocationConnection } from '../world/entities/location-connection.entity';
|
||||||
import { LocationDefinition } from '../world/entities/location-definition.entity';
|
import { LocationDefinition } from '../world/entities/location-definition.entity';
|
||||||
import { CLOCK } from './clock';
|
import { CLOCK } from '../shared/clock';
|
||||||
import type { Clock } from './clock';
|
import type { Clock } from '../shared/clock';
|
||||||
import { Travel } from './entities/travel.entity';
|
import { Travel } from './entities/travel.entity';
|
||||||
import {
|
import {
|
||||||
characterNotFound,
|
characterNotFound,
|
||||||
|
|||||||
Reference in New Issue
Block a user