Rename linkId to pageId in SetLabelsInput

This commit is contained in:
Jackson Harper
2022-04-12 12:46:32 -07:00
parent 848129233a
commit 73ef8fef09
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -1070,7 +1070,7 @@ enum SetLabelsErrorCode {
input SetLabelsInput {
labelIds: [ID!]!
linkId: ID!
pageId: ID!
}
union SetLabelsResult = SetLabelsError | SetLabelsSuccess

View File

@ -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 })

View File

@ -1359,7 +1359,7 @@ const schema = gql`
union SignupResult = SignupSuccess | SignupError
input SetLabelsInput {
linkId: ID!
pageId: ID!
labelIds: [ID!]!
}