Skip to content

Commit c192716

Browse files
committed
fix: updated changelog didn't contain source
1 parent ec52676 commit c192716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/store/sqlite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func boolToInt(b bool) int64 {
175175

176176
func (s *sqlite) UpdateChangelog(ctx context.Context, wID WorkspaceID, cID ChangelogID, args UpdateChangelogArgs) (Changelog, error) {
177177
// does not update string fields if they are zero value
178-
c, err := s.q.updateChangelog(ctx, updateChangelogParams{
178+
_, err := s.q.updateChangelog(ctx, updateChangelogParams{
179179
ID: cID.String(),
180180
WorkspaceID: wID.String(),
181181
Subdomain: args.Subdomain,
@@ -222,7 +222,7 @@ func (s *sqlite) UpdateChangelog(ctx context.Context, wID WorkspaceID, cID Chang
222222
}
223223
return Changelog{}, formatUnqueConstraint(err)
224224
}
225-
return c.toExported(changelogSource{}), nil
225+
return s.GetChangelog(ctx, wID, cID)
226226
}
227227

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

0 commit comments

Comments
 (0)