Skip to content

Commit

Permalink
fix(signs): Fix sign update patch call. (#74)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Cuevas-Koch <[email protected]>

Co-authored-by: Jeff Cuevas-Koch <[email protected]>
  • Loading branch information
cuevaskoch and Jeff Cuevas-Koch authored May 15, 2020
1 parent b74b14e commit 9d4e585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/resources/Sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ class Sign extends Resource {
body: [
{
op: 'replace',
path: 'approach_announcements_enabled',
path: '/approach_announcements_enabled',
value: this.approach_announcements_enabled,
},
{
op: 'replace',
path: 'approach_announcements_seconds',
path: '/approach_announcements_seconds',
value: this.approach_announcements_seconds,
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/resources/Sign.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('When updating a sign', () => {
let promise;
beforeEach(() => {
promise = new Sign(client, Sign.makeHref('SYNC', 1)).fetch()
.then(sign => {
.then((sign) => {
sign.approach_announcements_enabled = true;
sign.approach_announcements_seconds = 120;
return sign;
Expand Down

0 comments on commit 9d4e585

Please sign in to comment.