mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update to use pageId instead of linkId for SetLabels API
This commit is contained in:
parent
a728bcf886
commit
5a77bd8332
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ type SetLabels = {
|
|||
}
|
||||
|
||||
export async function setLabelsMutation(
|
||||
linkId: string,
|
||||
pageId: string,
|
||||
labelIds: string[]
|
||||
): Promise<Label[] | undefined> {
|
||||
const mutation = gql`
|
||||
|
|
@ -32,7 +32,7 @@ export async function setLabelsMutation(
|
|||
`
|
||||
|
||||
try {
|
||||
const data = await gqlFetcher(mutation, { input: { linkId, labelIds } }) as SetLabelsResult
|
||||
const data = await gqlFetcher(mutation, { input: { pageId, labelIds } }) as SetLabelsResult
|
||||
return data.errorCodes ? undefined : data.setLabels.labels
|
||||
} catch (error) {
|
||||
console.log('SetLabelsOutput error', error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue