-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix empty value #66
fix empty value #66
Conversation
@godu this is needed
8110017
to
5dc91ee
Compare
import {set$} from './util/etcd'; | ||
import createDebug from 'debug'; | ||
|
||
const debug = createDebug('squirrel'); | ||
|
||
const createAPI = (store, client) => { | ||
const createAPI = (store, client, options = {cwd: '/'}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;-)
@@ -30,7 +31,12 @@ const createAPI = (store, client) => { | |||
}; | |||
|
|||
const set = (_path, value) => { | |||
return set$(client, _path, JSON.stringify(value, null, 4)).toPromise(); | |||
_path = path.join(options.cwd, _path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finalement je fais pas que de la merde :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah :D
5dc91ee
to
7dc8d5b
Compare
@godu this is needed