Rename linkId to pageId in SetLabelsInput
This commit is contained in:
@ -1460,7 +1460,7 @@ export enum SetLabelsErrorCode {
|
||||
|
||||
export type SetLabelsInput = {
|
||||
labelIds: Array<Scalars['ID']>;
|
||||
linkId: Scalars['ID'];
|
||||
pageId: Scalars['ID'];
|
||||
};
|
||||
|
||||
export type SetLabelsResult = SetLabelsError | SetLabelsSuccess;
|
||||
|
||||
@ -1070,7 +1070,7 @@ enum SetLabelsErrorCode {
|
||||
|
||||
input SetLabelsInput {
|
||||
labelIds: [ID!]!
|
||||
linkId: ID!
|
||||
pageId: ID!
|
||||
}
|
||||
|
||||
union SetLabelsResult = SetLabelsError | SetLabelsSuccess
|
||||
|
||||
@ -203,7 +203,7 @@ export const setLabelsResolver = authorized<
|
||||
>(async (_, { input }, { claims: { uid }, log, pubsub }) => {
|
||||
log.info('setLabelsResolver')
|
||||
|
||||
const { linkId: pageId, labelIds } = input
|
||||
const { pageId, labelIds } = input
|
||||
|
||||
try {
|
||||
const user = await getRepository(User).findOneBy({ id: uid })
|
||||
|
||||
@ -1359,7 +1359,7 @@ const schema = gql`
|
||||
union SignupResult = SignupSuccess | SignupError
|
||||
|
||||
input SetLabelsInput {
|
||||
linkId: ID!
|
||||
pageId: ID!
|
||||
labelIds: [ID!]!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user