fix: bad NULL handling in where clause

This commit is contained in:
Iron_Felix 2025-11-24 06:26:23 +03:00
parent b42fb34903
commit 4e732e1542
3 changed files with 47 additions and 52 deletions

View file

@ -65,6 +65,7 @@ func (s Server) mapTitle(ctx context.Context, title sqlc.GetTitleByIDRow) (oapi.
oapi_studio.Id = title.StudioID
oapi_studio.Description = title.StudioDesc
if title.StudioIllustID != nil {
oapi_studio.Poster = &oapi.Image{}
oapi_studio.Poster.Id = title.StudioIllustID
oapi_studio.Poster.ImagePath = title.StudioImagePath
oapi_studio.Poster.StorageType = &title.StudioStorageType