]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/answer-status/announcement/class_AnnouncementAnswerOkayHandler.php
Setting the node instance in the handler saves another array element in
[hub.git] / application / hub / main / handler / answer-status / announcement / class_AnnouncementAnswerOkayHandler.php
index bf70056504ef163075482bcd7d5701837aa09dde..a22092a0f4bc57468d9df301f99ab444ebb8f9fd 100644 (file)
@@ -114,7 +114,7 @@ class AnnouncementAnswerOkayHandler extends BaseAnserStatusHandler implements Ha
                $objectList = $nodeInstance->getListFromAcceptedObjectTypes();
 
                // Add missing (temporary) configuration 'accepted_object_types'
-               $this->getConfigInstance()->setConfigEntry('accepted_object_types', implode(BaseHubNode::OBJECT_LIST_SEPARATOR, $objectList));
+               $this->getConfigInstance()->setConfigEntry(NodeDistributedHashTableDatabaseWrapper::DB_COLUMN_ACCEPTED_OBJECTS, implode(BaseHubNode::OBJECT_LIST_SEPARATOR, $objectList));
        }
 
        /**
@@ -126,7 +126,7 @@ class AnnouncementAnswerOkayHandler extends BaseAnserStatusHandler implements Ha
         */
        protected function removeMessageConfigurationData (array $messageData) {
                // Remove temporay configuration
-               $this->getConfigInstance()->unsetConfigEntry('accepted_object_types');
+               $this->getConfigInstance()->unsetConfigEntry(NodeDistributedHashTableDatabaseWrapper::DB_COLUMN_ACCEPTED_OBJECTS);
        }
 }