File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -322,13 +322,19 @@ Example:
322322 } ,
323323 params : ( params ) => {
324324 const result : Record < string , unknown > = { }
325+ const op = params . operation
326+
325327 if ( params . limit ) result . limit = Number ( params . limit )
326- if ( params . offset ) result . offset = Number ( params . offset )
327- if ( params . projectStatus ) result . status = params . projectStatus
328- if ( params . runStatusFilter ) result . statusFilter = params . runStatusFilter
329- if ( params . groupIdInput ) result . groupId = params . groupIdInput
330- if ( params . collectionName ) result . name = params . collectionName
331- if ( params . collectionDescription ) result . description = params . collectionDescription
328+ if ( op === 'get_project_runs' && params . offset ) result . offset = Number ( params . offset )
329+ if ( op === 'update_project' && params . projectStatus ) result . status = params . projectStatus
330+ if ( op === 'get_project_runs' && params . runStatusFilter )
331+ result . statusFilter = params . runStatusFilter
332+ if ( op === 'get_group' && params . groupIdInput ) result . groupId = params . groupIdInput
333+ if ( op === 'list_users' && params . groupId ) result . groupId = params . groupId
334+ if ( op === 'create_collection' && params . collectionName ) result . name = params . collectionName
335+ if ( op === 'create_collection' && params . collectionDescription )
336+ result . description = params . collectionDescription
337+
332338 return result
333339 } ,
334340 } ,
You can’t perform that action at this time.
0 commit comments