Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-arena-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-arena-api
Commits
5b0235e3
Commit
5b0235e3
authored
Mar 08, 2020
by
不如归去
Committed by
GitHub
Mar 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dual monthly pt reduce
parent
25ccc166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
routes/api.js
routes/api.js
+9
-8
No files found.
routes/api.js
View file @
5b0235e3
...
@@ -108,14 +108,15 @@ var j = schedule.scheduleJob('0 0 0 1 * *', function () {
...
@@ -108,14 +108,15 @@ var j = schedule.scheduleJob('0 0 0 1 * *', function () {
let
sql
=
`update user_info set pt = (pt - (pt - 1000) * 0.5 )
let
sql
=
`update user_info set pt = (pt - (pt - 1000) * 0.5 )
where pt > 1000`
;
where pt > 1000`
;
client
.
query
(
sql
,
function
(
err
,
result
)
{
// Monthly pt reduce will be done in function monthly_user_historical_record()
done
();
//client.query(sql, function (err, result) {
if
(
err
)
{
// done();
return
console
.
error
(
'
error running monthly scheduleJob
'
,
err
);
// if (err) {
}
// return console.error('error running monthly scheduleJob', err);
console
.
log
(
result
)
// }
});
// console.log(result)
//});
})
})
let
time
=
moment
().
subtract
(
1
,
'
month
'
);
let
time
=
moment
().
subtract
(
1
,
'
month
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment