Update the drop mechanic to take currency on drop instead of claim #428

Merged
Vylpes merged 9 commits from feature/CD-415 into develop 2025-05-16 17:37:58 +01:00
Showing only changes of commit 5f64f15ffa - Show all commits

View file

@ -4,7 +4,7 @@ import Claim from "../database/entities/app/Claim";
export default async function PurgeClaims() {
const claims = await Claim.FetchAll(Claim);
const whenLastClaimable = new Date(Date.now() - (1000 * 60 * 5)); // 5 minutes ago
const whenLastClaimable = new Date(Date.now() - (1000 * 60 * 2)); // 2 minutes ago
const expiredClaims = claims.filter(x => x.WhenCreated < whenLastClaimable);