mirror of
https://github.com/Viren070/stremio-addons-list.git
synced 2025-12-01 23:19:02 +01:00
Update build.js
This commit is contained in:
@@ -50,8 +50,8 @@ const getPosts = () =>
|
||||
|
||||
const syncLabels = (postId, proposedLabels, allLabels) => {
|
||||
const labels = proposedLabels.map(el => allLabels.find(elm => elm.name === el)).filter(el => !!el).map(el => el.id)
|
||||
if (!labels.length) return;
|
||||
request(
|
||||
if (!labels.length) return Promise.reject(Error('error: could not find any label id in order to update issue labels'));
|
||||
return request(
|
||||
`mutation {
|
||||
updateIssue(input: {id : "${postId}" , labelIds: ${JSON.stringify(labels)} }){
|
||||
issue {
|
||||
|
||||
Reference in New Issue
Block a user