Skip to content

Commit 0e12b47

Browse files
authored
fix: endpoint call cangrebot
1 parent d4f9b82 commit 0e12b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub async fn main(_e: ScheduledEvent, env: Env, _ctx: ScheduleContext) {
4343
return;
4444
}
4545

46-
let Ok(endpoint) = env.var("CANGREBOT_API_ENDPOINT").map(|e| e.to_string()) else {
46+
let Ok(endpoint) = env.var("CANGREBOT_API_ENDPOINT").map(|e| format!("{}/daily_challenge", e.to_string())) else {
4747
console_error!("Cannot get 'CANGREBOT_API_ENDPOINT' environment variable");
4848
return;
4949
};

0 commit comments

Comments
 (0)