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:
mergedAt: null
archivedAt: not null
submittedAt: null
createdAt: time elapsed since subsmission is greater than 24hrs
I also removed unused the buggy buildIsInActiveCondition since it is not used anywhere else in the code
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