Skip to content

Commit

Permalink
Fix submission commit detection caching being too agressive (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobofan authored Feb 25, 2024
1 parent 3a4bb25 commit c512660
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ const getSubmissionCommitOfVersionInternal = async (
}

export const getSubmissionCommitOfVersion = pMemoize(
getSubmissionCommitOfVersionInternal
getSubmissionCommitOfVersionInternal,
{
cacheKey: (arguments_) => JSON.stringify(arguments_),
}
)

// TODO: find a more robust way to do this
Expand Down

0 comments on commit c512660

Please sign in to comment.