Commit 3307c0b5 authored by Peter Xin's avatar Peter Xin

Clear DP on 1, 4, 7, 10

parent e08af193
Pipeline #18960 passed with stages
in 2 minutes and 38 seconds
......@@ -152,10 +152,11 @@ export class AppService {
.subtract(1, 'day')
.format('YYYY-MM-DD 23:59:59');
const base = 1000;
const reset = [1, 4, 7, 10].indexOf(moment().month()) >= 0;
try {
await this.mcdb.query(
'select monthly_user_historical_record($1::text, $2, $3::boolean, true)',
[season, base, false],
[season, base, reset],
);
await this.mcdb.query('select collect_win_lose_rate($1, $2)', [
lower_limit,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment