Skip to content

Commit

Permalink
Fix submission commit detection caching being too agressive
Browse files Browse the repository at this point in the history
  • Loading branch information
hobofan committed Feb 23, 2024
1 parent 770e702 commit 41a3f67
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 41a3f67

Please sign in to comment.