Update API
* Remove fwdUserId * Rename createComment to upsertComment
This commit is contained in:
parent
8523205a79
commit
22e41321bc
5
items.go
5
items.go
|
@ -32,7 +32,6 @@ func Items(query *ItemsQuery) (*ItemsCursor, error) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
fwdUserId
|
|
||||||
otsHash
|
otsHash
|
||||||
position
|
position
|
||||||
sats
|
sats
|
||||||
|
@ -137,8 +136,8 @@ func PostLink(url string, title string, sub string) (int, error) {
|
||||||
func CreateComment(parentId int, text string) (int, error) {
|
func CreateComment(parentId int, text string) (int, error) {
|
||||||
body := GraphQLPayload{
|
body := GraphQLPayload{
|
||||||
Query: `
|
Query: `
|
||||||
mutation createComment($text: String!, $parentId: ID!) {
|
mutation upsertComment($text: String!, $parentId: ID!) {
|
||||||
createComment(text: $text, parentId: $parentId) {
|
upsertComment(text: $text, parentId: $parentId) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
|
|
Loading…
Reference in New Issue