Skip to content

Commit

Permalink
Fix: Solved test issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres D. Molins committed Jul 9, 2024
1 parent 626d22e commit ac216db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aleph/handlers/content/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def vm_message_to_db(message: MessageDb) -> VmBaseDb:
content = _get_vm_content(message)
vm = _map_content_to_db_model(message.item_hash, content)

if isinstance(vm, ProgramContent):
if isinstance(vm, ProgramDb) and isinstance(content, ProgramContent):
vm.program_type = content.type
vm.persistent = bool(content.on.persistent)
vm.http_trigger = content.on.http
Expand Down

0 comments on commit ac216db

Please sign in to comment.