Skip to content

Commit

Permalink
only update active term ids
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavphadke1 committed Oct 30, 2023
1 parent 48b4b3e commit 0a9b433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ class Updater {
return termsStr.split(",");
}

// Get term IDs from our database
// Get active term IDs from our database
const termInfos = await prisma.termInfo.findMany({
orderBy: { termId: "desc" },
where: { active: true },
take: NUMBER_OF_TERMS_TO_UPDATE,
});

Expand Down

0 comments on commit 0a9b433

Please sign in to comment.