feat: support notification for node

This commit is contained in:
Marvin Zhang
2024-07-24 17:00:35 +08:00
parent 923921c17a
commit 7b1fa48fd9
5 changed files with 92 additions and 31 deletions

View File

@@ -110,6 +110,10 @@ func (svr TaskServerV2) Fetch(ctx context.Context, request *grpc.Request) (respo
}
func (svr TaskServerV2) SendNotification(_ context.Context, request *grpc.TaskServiceSendNotificationRequest) (response *grpc.Response, err error) {
if !utils.IsPro() {
return nil, nil
}
// task id
taskId, err := primitive.ObjectIDFromHex(request.TaskId)
if err != nil {