Skip to content

Commit

Permalink
Fix preview app run error
Browse files Browse the repository at this point in the history
  • Loading branch information
vegito22 committed Oct 23, 2024
1 parent 79ea24c commit cd69afc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llmstack/apps/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,9 @@ async def get_app_runner_async(
.order_by("-created_at")
.afirst()
)
if not app_data_obj and preview:
app_data_obj = await AppData.objects.filter(app_uuid=app.uuid).order_by("-created_at").afirst()

if not app_data_obj:
raise Exception("App data not found")
app_data = app_data_obj.data
Expand Down

0 comments on commit cd69afc

Please sign in to comment.