Skip to content

Commit 7e66372

Browse files
committed
fix: cli record publish/unpublish
The commands did nothing because of a type confusion.
1 parent 0c38576 commit 7e66372

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bbblb/cli/recording.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ async def _delete(obj: ServiceRegistry, record_id):
5959
@async_command()
6060
async 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()
6868
async 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

7373
async 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)

0 commit comments

Comments
 (0)