Skip to content

Commit defb1ae

Browse files
committedMay 4, 2023
Minor bug fixes to improve working with repository
1 parent df1f4de commit defb1ae

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
 

‎docs/antora-preview.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
antora_preview_version ?= 2.3.14
3-
antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora docker.io/vshn/antora-preview:$(antora_preview_version) --style=vshn
3+
antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora ghcr.io/vshn/antora-preview:latest --style=vshn
44

55
.PHONY: docs-preview
66
docs-preview: ## Preview the documentation

‎invoice_command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ func (cmd *invoiceCommand) execute(context *cli.Context) error {
112112
invoice.WithInvoiceLineDefaults(invLineDefault),
113113
invoice.WithItemDescriptionRenderer(descTemplates),
114114
)
115-
log.Info("Created invoice", "id", id)
116115
if err != nil {
117116
return fmt.Errorf("error creating invoice %+v: %w", inv, err)
118117
}
118+
log.Info("Created invoice", "id", id)
119119
}
120120

121121
return nil

‎odoo/client.go

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func (c Client) requestSession(ctx context.Context, login string, password strin
109109
return nil, newCreatingRequestError(err)
110110
}
111111
req.Header.Set("Content-Type", "application/json")
112+
req.Header.Set("Accept", "application/json")
112113

113114
// Send request
114115
resp, err := c.http.Do(req)

0 commit comments

Comments
 (0)
Please sign in to comment.