fixed doc env vars + mongo v2 migration
This commit is contained in:
@@ -5,38 +5,38 @@ import (
|
||||
on "github.com/tech/sendico/pkg/messaging/notifications/object"
|
||||
nm "github.com/tech/sendico/pkg/model/notification"
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
func InvitationCreated(
|
||||
sender string,
|
||||
actorAccountRef primitive.ObjectID,
|
||||
actorAccountRef bson.ObjectID,
|
||||
objectType mservice.Type,
|
||||
objectRef primitive.ObjectID,
|
||||
objectRef bson.ObjectID,
|
||||
) messaging.Envelope {
|
||||
return on.ObjectCreated(sender, actorAccountRef, mservice.Invitations, objectRef)
|
||||
}
|
||||
|
||||
func InvitationUpdated(
|
||||
sender string,
|
||||
actorAccountRef primitive.ObjectID,
|
||||
objectRef primitive.ObjectID,
|
||||
actorAccountRef bson.ObjectID,
|
||||
objectRef bson.ObjectID,
|
||||
) messaging.Envelope {
|
||||
return on.ObjectUpdated(sender, actorAccountRef, mservice.Invitations, objectRef)
|
||||
}
|
||||
|
||||
func InvitationDeleted(
|
||||
sender string,
|
||||
actorAccountRef primitive.ObjectID,
|
||||
objectRef primitive.ObjectID,
|
||||
actorAccountRef bson.ObjectID,
|
||||
objectRef bson.ObjectID,
|
||||
) messaging.Envelope {
|
||||
return on.ObjectDeleted(sender, actorAccountRef, mservice.Invitations, objectRef)
|
||||
}
|
||||
|
||||
func Invitation(
|
||||
sender string,
|
||||
actorAccountRef primitive.ObjectID,
|
||||
objectRef primitive.ObjectID,
|
||||
actorAccountRef bson.ObjectID,
|
||||
objectRef bson.ObjectID,
|
||||
action nm.NotificationAction,
|
||||
) messaging.Envelope {
|
||||
return on.Object(sender, actorAccountRef, mservice.Invitations, objectRef, action)
|
||||
|
||||
Reference in New Issue
Block a user