mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 08:52:38 +00:00
Shift unlock and removeReview functions to use PUT
This commit is contained in:
@@ -237,7 +237,7 @@ const LockLookup = createClass({
|
||||
clickFn(){
|
||||
this.setState({ searching: true, error: null });
|
||||
|
||||
request.get(`${this.props.fetchURL}/${this.state.query}`)
|
||||
request.put(`${this.props.fetchURL}/${this.state.query}`)
|
||||
.then((res)=>this.setState({ result: res.body }))
|
||||
.catch((err)=>this.setState({ error: err }))
|
||||
.finally(()=>{
|
||||
|
||||
Reference in New Issue
Block a user