diff --git a/.changeset/swift-dots-shop.md b/.changeset/swift-dots-shop.md new file mode 100644 index 0000000..477d699 --- /dev/null +++ b/.changeset/swift-dots-shop.md @@ -0,0 +1,6 @@ +--- +"greenhouse-jobboard-js": patch +"@karrotmarket/gatsby-source-greenhouse-jobboard": patch +--- + +Fix job board entry endpoint diff --git a/packages/greenhouse-jobboard-js/src/client.ts b/packages/greenhouse-jobboard-js/src/client.ts index b84070e..ed67d8b 100644 --- a/packages/greenhouse-jobboard-js/src/client.ts +++ b/packages/greenhouse-jobboard-js/src/client.ts @@ -49,13 +49,13 @@ export class JobBoardClientV1 { } async getJob(jobId: Job['id']): Promise { - const url = new URL(`${this.endpoint}/job/${jobId}`); + const url = new URL(`${this.endpoint}/jobs/${jobId}`); return this.#client.get(url) as Promise; } async getJobWithQuestions(jobId: Job['id']): Promise { - const url = new URL(`${this.endpoint}/job/${jobId}`); + const url = new URL(`${this.endpoint}/jobs/${jobId}`); url.searchParams.set('questions', 'true'); return this.#client.get(url) as Promise;