Skip to content

Commit

Permalink
refactor(trip): update retrieve method URL to use tripId variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Jul 2, 2024
1 parent 9b582db commit 68b44f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/trip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class Trip extends APIResource {
* Get details of a specific trip
*/
retrieve(tripId: string, options?: Core.RequestOptions): Core.APIPromise<TripRetrieveResponse> {
return this._client.get(`/api/where/trip/tripID.json`, options);
return this._client.get(`/api/where/trip/${tripId}.json`, options);
}
}

Expand Down

0 comments on commit 68b44f4

Please sign in to comment.