fix: app copy raise error (#11108)

This commit is contained in:
非法操作 2024-11-26 13:42:13 +08:00 committed by GitHub
parent 1db14793fa
commit 90d5765fb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,7 +190,7 @@ class AppCopyApi(Resource):
)
session.commit()
stmt = select(App).where(App.id == result.app.id)
stmt = select(App).where(App.id == result.app_id)
app = session.scalar(stmt)
return app, 201