Skip to content

Commit

Permalink
Various fixes for local user export setup
Browse files Browse the repository at this point in the history
ref DEV-2363
  • Loading branch information
louischan-oursky committed Dec 12, 2024
2 parents 4a3f6c4 + ded4903 commit 8d451ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ This project uses asdf, and there is a .tool-versions file at the project root.
```sh
docker compose up -d minio
docker compose exec -it bash
docker compose exec -it minio bash
# Inside the container
mc alias set local http://localhost:9000 "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD"
Expand Down
6 changes: 6 additions & 0 deletions pkg/lib/userexport/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ func (s *UserExportService) convertDBUserToRecord(user *user.UserForExport) (rec
}

func (s *UserExportService) ExportRecords(ctx context.Context, request *Request, task *redisqueue.Task) (outputFilename string, err error) {
defer func() {
if err != nil {
s.Logger.WithError(err).Error("export failed")
}
}()

resultFile, err := os.CreateTemp("", fmt.Sprintf("export-%s.tmp", task.ID))
if err != nil {
return
Expand Down

0 comments on commit 8d451ee

Please sign in to comment.