Skip to content

Commit

Permalink
fix cloud function name
Browse files Browse the repository at this point in the history
  • Loading branch information
DesertsP committed May 23, 2019
1 parent bb34dde commit 6a09b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ AV.Cloud.afterSave('Comment', function (req) {
return sendNotification(currentComment, req.meta.remoteAddress);
});

AV.Cloud.define('resend-mails', function(req) {
AV.Cloud.define('resend_mails', function(req) {
let query = new AV.Query(Comment);
query.greaterThanOrEqualTo('createdAt', new Date(new Date().getTime() - 24*60*60*1000));
query.notEqualTo('isNotified', true);
Expand All @@ -65,9 +65,9 @@ AV.Cloud.define('resend-mails', function(req) {
});
});

AV.Cloud.define('self-wake', function(req) {
AV.Cloud.define('self_wake', function(req) {
request(process.env.ADMIN_URL, function (error, response, body) {
console.log('自唤醒任务执行成功,响应状态码为:', response && response.statusCode);
});
})
});

0 comments on commit 6a09b3c

Please sign in to comment.