Skip to content

Commit

Permalink
Fix equipment ID as UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan2u committed Sep 20, 2024
1 parent 8a1ff0f commit c261636
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {Equipment} from './return-types';
import {QzEvent} from '../../types/qz-event';
import {extractGoogleSheetData} from '../../training-sheets/google';
import {DateTime} from 'luxon';
import {UUID} from 'io-ts-types';

const GOOGLE_UPDATE_INTERVAL_MS = 5 * 60 * 1000;

Expand Down Expand Up @@ -39,7 +40,12 @@ export const pullNewEquipmentQuizResults = (
return pipe(
pullGoogleSheetData(logger, trainingSheetId),
TE.map(
extractGoogleSheetData(logger, trainingSheetId, equipment.lastQuizResult)
extractGoogleSheetData(
logger,
trainingSheetId,
equipment.id as UUID,
equipment.lastQuizResult
)
),
TE.map(RA.flatten),
// eslint-disable-next-line @typescript-eslint/require-await
Expand Down

0 comments on commit c261636

Please sign in to comment.