a18203934c
Changes: - as we store date in redis as serialized, let's make all flatEntity dates as string. This requires changing FlatEntity types and making sure that entity are converted to flatEntity and flatEntity to dtos
10 lines
418 B
TypeScript
10 lines
418 B
TypeScript
import { type FlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/flat-entity-maps.type';
|
|
import { type SyncableFlatEntity } from 'src/engine/metadata-modules/flat-entity/types/flat-entity.type';
|
|
|
|
export const createEmptyFlatEntityMaps = () =>
|
|
({
|
|
byId: {},
|
|
idByUniversalIdentifier: {},
|
|
universalIdentifiersByApplicationId: {},
|
|
}) as const satisfies FlatEntityMaps<SyncableFlatEntity>;
|