Skip to content

Commit

Permalink
fix FormattedSession type to be what FileExportManager expects
Browse files Browse the repository at this point in the history
  • Loading branch information
buckhalt committed May 3, 2024
1 parent 4a73490 commit 3ec3192
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/network-exporters/formatters/formatExportableSessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ import {
sessionFinishTimeProperty,
sessionProperty,
sessionStartTimeProperty,
type NcNode,
type NcEntity,
type NcEdge,
} from '@codaco/shared-consts';
import { hash } from 'ohash';
import { env } from '~/env.mjs';
import type { RouterOutputs } from '~/trpc/shared';

type FormattedSession = {
sessionNetwork: NcNetwork;
ego: NcEntity | undefined;
nodes: NcNode[];
edges: NcEdge[];
sessionVariables: {
[caseProperty]: string;
[sessionProperty]: string;
Expand Down Expand Up @@ -65,6 +70,6 @@ export const formatExportableSessions = (
return {
...sessionNetwork,
sessionVariables,
};
} as FormattedSession;
});
};

0 comments on commit 3ec3192

Please sign in to comment.