feat: store created_by and updated_by for apps, modelconfigs, and sites (#7613)

This commit is contained in:
kurokobo 2024-08-28 09:47:30 +09:00 • committed by GitHub
commit bc3a8e0ca2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 115 additions and 0 deletions

View file

@ -346,6 +346,8 @@ class AppDslService:
app_model_config = AppModelConfig()
app_model_config = app_model_config.from_model_config_dict(model_config_data)
app_model_config.app_id = app.id
app_model_config.created_by = account.id
app_model_config.updated_by = account.id
db.session.add(app_model_config)
db.session.commit()
@ -390,6 +392,8 @@ class AppDslService:
icon_background=icon_background,
enable_site=True,
enable_api=True,
created_by=account.id,
updated_by=account.id,
)
db.session.add(app)