File tree Expand file tree Collapse file tree 3 files changed +5
-25
lines changed
qeta-backend/src/service/upload
scaffolder-backend-module-qeta/src/actions Expand file tree Collapse file tree 3 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 1
1
import { Attachment } from '@drodil/backstage-plugin-qeta-common' ;
2
2
import { File } from '../types' ;
3
- import { Config } from '@backstage/config/index ' ;
3
+ import { Config } from '@backstage/config' ;
4
4
import { QetaStore } from '../../database/QetaStore' ;
5
5
6
6
export type AttachmentStorageEngineOptions = {
Original file line number Diff line number Diff line change @@ -6,22 +6,12 @@ export const createFollowTagAction = (options: {
6
6
auth : AuthService ;
7
7
discovery : DiscoveryService ;
8
8
} ) => {
9
- return createTemplateAction < {
10
- tag : string ;
11
- } > ( {
9
+ return createTemplateAction ( {
12
10
id : 'qeta:tag:follow' ,
13
11
description : 'Sets current user to follow a tag in Q&A' ,
14
12
schema : {
15
13
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' ) ,
25
15
} ,
26
16
} ,
27
17
supportsDryRun : true ,
Original file line number Diff line number Diff line change @@ -6,22 +6,12 @@ export const createUnfollowTagAction = (options: {
6
6
auth : AuthService ;
7
7
discovery : DiscoveryService ;
8
8
} ) => {
9
- return createTemplateAction < {
10
- tag : string ;
11
- } > ( {
9
+ return createTemplateAction ( {
12
10
id : 'qeta:tag:unfollow' ,
13
11
description : 'Removes current user from following a tag in Q&A' ,
14
12
schema : {
15
13
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' ) ,
25
15
} ,
26
16
} ,
27
17
supportsDryRun : true ,
You can’t perform that action at this time.
0 commit comments