fixed doc env vars + mongo v2 migration
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
|
||||
"github.com/tech/sendico/pkg/db/template"
|
||||
"github.com/tech/sendico/pkg/model"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
type DB interface {
|
||||
template.DB[*model.RoleDescription]
|
||||
Roles(ctx context.Context, refs []primitive.ObjectID) ([]model.RoleDescription, error)
|
||||
List(ctx context.Context, organizationRef primitive.ObjectID, cursor *model.ViewCursor) ([]model.RoleDescription, error)
|
||||
Roles(ctx context.Context, refs []bson.ObjectID) ([]model.RoleDescription, error)
|
||||
List(ctx context.Context, organizationRef bson.ObjectID, cursor *model.ViewCursor) ([]model.RoleDescription, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user