feat(ugc): queue_on_property_save: only queued models are made, a property's are queued when it is saved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 03:16:56 -05:00
parent 5ad1a75da5
commit 7729d14fa4
4 changed files with 6 additions and 2 deletions

View File

@@ -838,6 +838,8 @@ void PropertyManagementComponent::Save() {
info.id = propertyId;
info.lastUpdatedTime = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
Database::Get()->UpdateLastSave(info);
// Its models may be made now (the UGC setting queue_on_property_save makes only queued ones)
Database::Get()->QueuePropertyUgcModels(propertyId);
DashboardNotify::Changed("properties", propertyId);
}