Skip to content

fix(server): switch db bug fix - #121

Merged
soneda-yuya merged 2 commits into
mainfrom
fix/workspace-fetch-issue2
Jan 20, 2026
Merged

fix(server): switch db bug fix#121
soneda-yuya merged 2 commits into
mainfrom
fix/workspace-fetch-issue2

Conversation

@hexaforce

Copy link
Copy Markdown
Contributor

Overview

Both refer to the same database.

The database switch is not working properly.

What I've done

In the New function of server/internal/infrastructure/mongo/container.go, even though the parameter account *accountrepo.Container is passed in, lines 61–62 were using the wrong database client:

Workspace: NewWorkspaceWrapper(client),
User:      NewUserWrapper(client),

This client is for the "reearth" database, but Workspace and User are stored in the "reearth-account" database.

What I haven't done

How I tested

Which point I want you to review particularly

Memo

@soneda-yuya
soneda-yuya merged commit 8c34b22 into main Jan 20, 2026
9 checks passed
@soneda-yuya
soneda-yuya deleted the fix/workspace-fetch-issue2 branch January 20, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants