package invitationdb

import (
	"context"

	"github.com/tech/sendico/pkg/model"
	"go.mongodb.org/mongo-driver/v2/bson"
)

func (db *InvitationDB) Accept(ctx context.Context, invitationRef bson.ObjectID) error {
	return db.updateStatus(ctx, invitationRef, model.InvitationAccepted)
}
