diff --git a/.env.example b/.env.example index a4f08aa..0224834 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ todoist_bearer_token=XYZ -todoist_project_id=XYZ -airtable_api_key=XYZ -airtable_base_url="https://api.airtable.com/" \ No newline at end of file +airtable_pat=XYZ +todoist_project_id=XZY +airtable_api_key=XZY +airtable_base_url="https://api.airtable.com/v0/XYZ" diff --git a/src/main.rs b/src/main.rs index c481e97..af9df54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,8 +33,8 @@ async fn main() { .expect("todoist_bearer_token environment variable must be set."); let todoist_project_id = std::env::var("todoist_project_id") .expect("todoist_project_id environment variable must be set."); - let airtable_token: String = std::env::var("airtable_api_key") - .expect("airtable_api_key environment variable must be set."); + let airtable_token: String = std::env::var("airtable_pat") + .expect("airtable_pat environment variable must be set."); let airtable_base_url: String = std::env::var("airtable_base_url") .expect("airtable_base_url environment variable must be set.");