Skip to content

Commit

Permalink
fix: updated changelog didn't contain source
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasHiltl committed Nov 24, 2024
1 parent ec52676 commit c192716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/store/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func boolToInt(b bool) int64 {

func (s *sqlite) UpdateChangelog(ctx context.Context, wID WorkspaceID, cID ChangelogID, args UpdateChangelogArgs) (Changelog, error) {
// does not update string fields if they are zero value
c, err := s.q.updateChangelog(ctx, updateChangelogParams{
_, err := s.q.updateChangelog(ctx, updateChangelogParams{
ID: cID.String(),
WorkspaceID: wID.String(),
Subdomain: args.Subdomain,
Expand Down Expand Up @@ -222,7 +222,7 @@ func (s *sqlite) UpdateChangelog(ctx context.Context, wID WorkspaceID, cID Chang
}
return Changelog{}, formatUnqueConstraint(err)
}
return c.toExported(changelogSource{}), nil
return s.GetChangelog(ctx, wID, cID)
}

// If err is a unique constraint error, return humanized error message.
Expand Down

0 comments on commit c192716

Please sign in to comment.