Skip to content

Commit 5cddf35

Browse files
committed
fix: tsc errors due to backstage update
1 parent 05d64e5 commit 5cddf35

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

plugins/qeta-backend/src/service/upload/attachmentStorageEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Attachment } from '@drodil/backstage-plugin-qeta-common';
22
import { File } from '../types';
3-
import { Config } from '@backstage/config/index';
3+
import { Config } from '@backstage/config';
44
import { QetaStore } from '../../database/QetaStore';
55

66
export type AttachmentStorageEngineOptions = {

plugins/scaffolder-backend-module-qeta/src/actions/followTag.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,12 @@ export const createFollowTagAction = (options: {
66
auth: AuthService;
77
discovery: DiscoveryService;
88
}) => {
9-
return createTemplateAction<{
10-
tag: string;
11-
}>({
9+
return createTemplateAction({
1210
id: 'qeta:tag:follow',
1311
description: 'Sets current user to follow a tag in Q&A',
1412
schema: {
1513
input: {
16-
required: ['tag'],
17-
type: 'object',
18-
properties: {
19-
tag: {
20-
type: 'string',
21-
title: 'Tag',
22-
description: 'Tag to follow',
23-
},
24-
},
14+
tag: z => z.string().describe('Tag to follow'),
2515
},
2616
},
2717
supportsDryRun: true,

plugins/scaffolder-backend-module-qeta/src/actions/unfollowTag.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,12 @@ export const createUnfollowTagAction = (options: {
66
auth: AuthService;
77
discovery: DiscoveryService;
88
}) => {
9-
return createTemplateAction<{
10-
tag: string;
11-
}>({
9+
return createTemplateAction({
1210
id: 'qeta:tag:unfollow',
1311
description: 'Removes current user from following a tag in Q&A',
1412
schema: {
1513
input: {
16-
required: ['tag'],
17-
type: 'object',
18-
properties: {
19-
tag: {
20-
type: 'string',
21-
title: 'Tag',
22-
description: 'Tag to unfollow',
23-
},
24-
},
14+
tag: z => z.string().describe('Tag to unfollow'),
2515
},
2616
},
2717
supportsDryRun: true,

0 commit comments

Comments
 (0)