diff --git a/persistence/space_queries.go b/persistence/space_queries.go index b09af86..d383424 100644 --- a/persistence/space_queries.go +++ b/persistence/space_queries.go @@ -26,7 +26,7 @@ func (p Profile) SaveSpace(s scraper.Space) error { created_by_id=case when created_by_id is not null then created_by_id else nullif(:created_by_id, 0) end, short_url=case when short_url == "" then :short_url else short_url end, state=:state, - title=:title, + title=case when :is_details_fetched then :title else title end, updated_at=max(:updated_at, updated_at), is_available_for_replay=:is_available_for_replay, replay_watch_count=:replay_watch_count,