Fix title no-worsening for spaces

This commit is contained in:
Alessio 2022-11-25 13:32:22 -05:00
parent 412574e46f
commit 37525e58c0

View File

@ -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, 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, short_url=case when short_url == "" then :short_url else short_url end,
state=:state, state=:state,
title=:title, title=case when :is_details_fetched then :title else title end,
updated_at=max(:updated_at, updated_at), updated_at=max(:updated_at, updated_at),
is_available_for_replay=:is_available_for_replay, is_available_for_replay=:is_available_for_replay,
replay_watch_count=:replay_watch_count, replay_watch_count=:replay_watch_count,