File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,19 +59,19 @@ async def _delete(obj: ServiceRegistry, record_id):
5959@async_command ()
6060async def publish (obj : ServiceRegistry , record_id ):
6161 """Publish recordings"""
62- await _change_publish_flag (obj , record_id , model .RecordingState .PUBLISHED )
62+ await _change_publish_flag (obj , [ record_id ] , model .RecordingState .PUBLISHED )
6363
6464
6565@recording .command ()
6666@click .argument ("record_id" , nargs = - 1 )
6767@async_command ()
6868async def unpublish (obj : ServiceRegistry , record_id ):
6969 """Unpublish recordings"""
70- await _change_publish_flag (obj , record_id , model .RecordingState .UNPUBLISHED )
70+ await _change_publish_flag (obj , [ record_id ] , model .RecordingState .UNPUBLISHED )
7171
7272
7373async def _change_publish_flag (
74- obj : ServiceRegistry , record_id , state : model .RecordingState
74+ obj : ServiceRegistry , record_id : list [ str ] , state : model .RecordingState
7575):
7676 importer = await obj .use (RecordingManager )
7777 db = await obj .use (DBContext )
You can’t perform that action at this time.
0 commit comments