Skip to content

Commit

Permalink
Fix typo in training data query
Browse files Browse the repository at this point in the history
  • Loading branch information
JustMaier committed Mar 22, 2024
1 parent f56e36f commit 0395e01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/jobs/delete-old-training-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export const deleteOldTrainingData = createJob(
COALESCE(COALESCE(mf.metadata -> 'trainingResults' ->> 'submittedAt',
mf.metadata -> 'trainingResults' -> 'history' -> 0 ->> 'time')::timestamp,
mv."updatedAt"
) as submitted_at
) as submitted_at,
mf.visibility,
mf.url
FROM "ModelVersion" mv
JOIN "Model" m ON m.id = mv."modelId"
JOIN "ModelFile" mf ON mf."modelVersionId" = mv.id AND mf.type = 'Training Data'
JOIN "Model" m ON m.id = mv."modelId"
JOIN "ModelFile" mf ON mf."modelVersionId" = mv.id AND mf.type = 'Training Data'
WHERE m."uploadType" = 'Trained'
AND mv."trainingStatus" in ('InReview', 'Approved')
AND (timezone('utc', current_timestamp) -
Expand Down

0 comments on commit 0395e01

Please sign in to comment.