mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
🐛 faulty recency selector
This commit is contained in:
parent
39b91946eb
commit
0069a5f2a3
@ -274,7 +274,7 @@ exports.notify_holders_of_changing_room_updates = async context => {
|
|||||||
console.log( `${ owner_meta.length } Owners in cache` )
|
console.log( `${ owner_meta.length } Owners in cache` )
|
||||||
const owners_emailed_recently = owner_meta
|
const owners_emailed_recently = owner_meta
|
||||||
// Too recently means last_emailed is larger than the point in the past past which it's been too long
|
// Too recently means last_emailed is larger than the point in the past past which it's been too long
|
||||||
.filter( ( { last_emailed_about_outfit } ) => !last_emailed_about_outfit || ( last_emailed_about_outfit > ( Date.now() - newOutfitAllowedInterval ) ) )
|
.filter( ( { last_emailed_about_outfit } ) => last_emailed_about_outfit && ( last_emailed_about_outfit > ( Date.now() - newOutfitAllowedInterval ) ) )
|
||||||
.map( ( { uid } ) => uid.toLowerCase() )
|
.map( ( { uid } ) => uid.toLowerCase() )
|
||||||
|
|
||||||
// Remove owners from list of they were emailed too recently
|
// Remove owners from list of they were emailed too recently
|
||||||
|
Loading…
x
Reference in New Issue
Block a user