Cron Implementation - tested
This commit is contained in:
parent
af3b2fe53b
commit
b3282a360c
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ class App extends React.Component<any,any> {
|
||||||
return(
|
return(
|
||||||
<div className="cron">
|
<div className="cron">
|
||||||
<div id="cronMessage"> Welcome back! Please check your tasks for the last day and hit continue to get your daily rewards. </div>
|
<div id="cronMessage"> Welcome back! Please check your tasks for the last day and hit continue to get your daily rewards. </div>
|
||||||
<button onClick={() => {this.runCron}}>Continue</button>
|
<button onClick={this.runCron}>Continue</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -55,7 +55,7 @@ class App extends React.Component<any,any> {
|
||||||
makeCronReq(this.username, this.credentials)
|
makeCronReq(this.username, this.credentials)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.setState({
|
this.setState({
|
||||||
needCron: false
|
needCron: false,
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
this.reloadData();
|
this.reloadData();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue