Remove platform tenancy from SXCHNGE customer BFF (#34)
This commit is contained in:
1 parent
7062672a87
commit
981e84a4b4
244 files changed
+651
-17130
No files matched your search
@@ -2,7 +2,6 @@ package mzap
|
||||
|
||||
import (
|
||||
"git.sendico.io/tech/sxchnge/bff/pkg/db/storable"
|
||||
"git.sendico.io/tech/sxchnge/bff/pkg/model"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
@@ -14,15 +13,3 @@ func ObjRef(name string, objRef bson.ObjectID) zap.Field {
|
||||
func StorableRef(obj storable.Storable) zap.Field {
|
||||
return ObjRef(obj.Collection()+"_ref", *obj.GetID())
|
||||
}
|
||||
|
||||
func OrgRef(orgRef bson.ObjectID) zap.Field {
|
||||
return ObjRef("organization_ref", orgRef)
|
||||
}
|
||||
|
||||
func OrganizationRef(obj model.OrganizationBound) zap.Field {
|
||||
return OrgRef(obj.GetOrganizationRef())
|
||||
}
|
||||
|
||||
func PermissionRef(permissionRef bson.ObjectID) zap.Field {
|
||||
return ObjRef("permission_ref", permissionRef)
|
||||
}
|
||||
Reference in new issue
Block a user