From 133b9d90441008ee175e1f8e6369e06309e1392a Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Tue, 7 Feb 2023 23:39:00 +0800 Subject: refactor(db): finish migrate methods off `user.go` (#7337) --- internal/db/orgs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/orgs_test.go') diff --git a/internal/db/orgs_test.go b/internal/db/orgs_test.go index ecc4cfcd..9989394d 100644 --- a/internal/db/orgs_test.go +++ b/internal/db/orgs_test.go @@ -66,7 +66,7 @@ func orgsList(t *testing.T, db *orgs) { ).Error require.NoError(t, err) - // TODO: Use OrgUsers.Join to replace SQL hack when the method is available. + // TODO: Use Orgs.Join to replace SQL hack when the method is available. err = db.Exec(`INSERT INTO org_user (uid, org_id, is_public) VALUES (?, ?, ?)`, alice.ID, org1.ID, false).Error require.NoError(t, err) err = db.Exec(`INSERT INTO org_user (uid, org_id, is_public) VALUES (?, ?, ?)`, alice.ID, org2.ID, true).Error -- cgit v1.2.3