Skip to content

Commit

Permalink
endpoint typo "movies"
Browse files Browse the repository at this point in the history
  • Loading branch information
foomoon committed Jan 30, 2024
1 parent 52bbe9b commit c328d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/lib/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ export class Light {
// id must be between 0 and 15
if (id < 0 || id > 15)
throw new Error("ID must be between 0 and 15");
let res = yield this.sendPostRequest("/movie/current", id);
let res = yield this.sendPostRequest("/movies/current", id);
return res;
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export class Light {
async setCurrentMovie(id: number): Promise<object> {
// id must be between 0 and 15
if (id < 0 || id > 15) throw new Error("ID must be between 0 and 15");
let res = await this.sendPostRequest("/movie/current", id);
let res = await this.sendPostRequest("/movies/current", id);
return res;
}
/**
Expand Down

0 comments on commit c328d5e

Please sign in to comment.