Skip to content

Commit

Permalink
replace globalCfg by conf naming on vocdoni-node
Browse files Browse the repository at this point in the history
Run go generate

Signed-off-by: p4u <[email protected]>
  • Loading branch information
p4u committed Oct 27, 2023
1 parent 1e9ca9e commit e0a7f0c
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 117 deletions.
4 changes: 2 additions & 2 deletions api/censuses.go
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ func (a *API) censusVerifyHandler(msg *apirest.APIdata, ctx *httprouter.HTTPCont
// @Tags Censuses
// @Accept json
// @Produce json
// @Success 200 {object} object{valid=bool}
// @Success 200 {object} object{valid=bool}
// @Router /censuses/export [get]
func (a *API) censusExportDBHandler(msg *apirest.APIdata, ctx *httprouter.HTTPContext) error {
buf := bytes.Buffer{}
Expand All @@ -847,7 +847,7 @@ func (a *API) censusExportDBHandler(msg *apirest.APIdata, ctx *httprouter.HTTPCo
// @Tags Censuses
// @Accept json
// @Produce json
// @Success 200 {object} object{valid=bool}
// @Success 200 {object} object{valid=bool}
// @Router /censuses/import [post]
func (a *API) censusImportDBHandler(msg *apirest.APIdata, ctx *httprouter.HTTPContext) error {
if err := a.censusdb.ImportCensusDB(bytes.NewReader(msg.Data)); err != nil {
Expand Down
Loading

0 comments on commit e0a7f0c

Please sign in to comment.