bitcointranscripts / transcription-review-backend

7 stars 11 forks source link

fix: expired condition not return merged reviews #288

Closed Extheoisah closed 4 months ago

Extheoisah commented 4 months ago

This pr fixes a bug where fetching expred reviews using the admin endpoint returns merged reviews as part of the data. The pr refactors the expired condition to check only for expired reviews based on these conditions:

I also removed unused the buggy buildIsInActiveCondition since it is not used anywhere else in the code