feat(org): add organization and membership contract and storage
This commit is contained in:
1 parent
a0551a34b8
commit
bdc5855001
90 files changed
+17545
-480
No files matched your search
@@ -6,6 +6,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"log/slog"
|
||||
"slices"
|
||||
"strings"
|
||||
"sync"
|
||||
"testing"
|
||||
@@ -62,7 +63,7 @@ func TestMailQuota(t *testing.T) {
|
||||
harness.recipients = &deliveryHarness{env: env, pool: pool, identity: postgresadapter.NewIdentityStore(pool), logs: harness.logs}
|
||||
reset := func(t *testing.T, now time.Time) domain.User {
|
||||
t.Helper()
|
||||
truncateTables(ctx, t, pool, append([]pgx.Identifier{mailQuotaUsageTable, mailQuotaReservationsTable}, append(append(deliveryTables, identityTables...), consentTables...)...)...)
|
||||
truncateTables(ctx, t, pool, slices.Concat([]pgx.Identifier{mailQuotaUsageTable, mailQuotaReservationsTable}, usersDependentTables)...)
|
||||
harness.now = now
|
||||
harness.recipients.now = now
|
||||
return harness.recipients.createRecipient(ctx, t, true)
|
||||
|
||||
Reference in new issue
Block a user