forked from ppfun/pixelplanet
replace option on node-redis copy has to be lower-case
This commit is contained in:
parent
5c3ac63889
commit
dfe64159bb
|
@ -130,11 +130,13 @@ export async function storeHourlyCountryStats(start, amount) {
|
||||||
REV: true,
|
REV: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await client.copy(DAILY_CRANKED_KEY, PREV_DAILY_CRANKED_KEY, {
|
await Promise.all([
|
||||||
REAPLACE: true,
|
client.copy(DAILY_CRANKED_KEY, PREV_DAILY_CRANKED_KEY, {
|
||||||
});
|
replace: true,
|
||||||
await client.set(PREV_DAILY_CRANKED_TS_KEY, String(tsNow));
|
}),
|
||||||
await client.del(HOURLY_CRANKED_KEY);
|
client.set(PREV_DAILY_CRANKED_TS_KEY, String(tsNow)),
|
||||||
|
client.del(HOURLY_CRANKED_KEY),
|
||||||
|
]);
|
||||||
|
|
||||||
if (prevTs && prevTs > tsNow - 1000 * 3600 * 1.5) {
|
if (prevTs && prevTs > tsNow - 1000 * 3600 * 1.5) {
|
||||||
const curData = await client.zRangeWithScores(
|
const curData = await client.zRangeWithScores(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user