Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 44790af

Browse files
committed
Fixed some bugs for 3.1.3
1 parent 66acb31 commit 44790af

File tree

7 files changed

+121
-152
lines changed

7 files changed

+121
-152
lines changed

client/src/helpers/api.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,16 @@ import axios from 'axios';
22

33
export const post = async function(data, url) {
44
if(process.env.REACT_APP_DEV_SERVER) {
5-
return axios.post(`${process.env.REACT_APP_DEV_SERVER}/server/${url}`, {
6-
data
7-
});
5+
return axios.post(`${process.env.REACT_APP_DEV_SERVER}/server/${url}`, data);
86
}
97

10-
return axios.post(`/server/${url}`, {
11-
data
12-
});
8+
return axios.post(`/server/${url}`, data);
139
};
1410

1511
export const sandbox = async function(data) {
1612
if(process.env.REACT_APP_DEV_SERVER) {
17-
return axios.post(`${process.env.REACT_APP_DEV_SERVER}/assistant`, {
18-
data
19-
});
13+
return axios.post(`${process.env.REACT_APP_DEV_SERVER}/assistant`, data);
2014
}
2115

22-
return axios.post('/assistant', {
23-
data
24-
});
16+
return axios.post('/assistant', data);
2517
};

readMe.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Send Assistant Relay any query you would send the Google Assistant SDK, and get
66

77
It also supports the Google Home Broadcast command so you can send audio notifications to your Google Home devices, without interrupting music.
88

9+
## New in V3.1.3
10+
**Note: Please run `npm i` after updating**
11+
- Fixed another bug that stopped `/assistant` from working
12+
13+
## New in V3.1.2
14+
**Note: Please run `npm i` after updating**
15+
- Fixed a bug that prevented OAuth from working
16+
917
## New in V3.1.1
1018
**Note: Please run `npm i` after updating**
1119
- Fixed a bug that stopped commands from working (sorry, not sure where this one came from)

relay/bin/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "v3.1.1"
2+
"version": "v3.1.3"
33
}

0 commit comments

Comments
 (0)