mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +00:00
382ba79584
A visit is a place planned on a day of one of the reader's trips; nothing is kept or confirmed by hand. A place keeps a log of changes to its details, links the tours and bookings it is about, and carries tags private to the reader, which a copy into a trip takes along only when picked. Contracts, routes, MCP tools and migrations for both engines.
14 lines
588 B
TypeScript
14 lines
588 B
TypeScript
import type { PlaceChangesService } from '../../src/nest/place-changes/place-changes.service';
|
|
|
|
/**
|
|
* A PlaceChangesService for the suites that build a places or collections
|
|
* service by hand and are about something else: it runs every write and
|
|
* records no history. The history itself is tested in
|
|
* tests/unit/nest/place-changes/ and tests/e2e/place-history.e2e.test.ts.
|
|
*/
|
|
export function passThroughPlaceChanges(): PlaceChangesService {
|
|
return {
|
|
track: <T>(_targets: unknown, _editor: unknown, write: () => Promise<T>) => write(),
|
|
} as unknown as PlaceChangesService;
|
|
}
|