src/Database/MongoProvider.js
/**
     * Update AxonConfig in the DB.
     * Update the specific key with the value given as second parameters.
     * Generic method to update Database.
     *
     * @param {String} key - The identifier in the Database
     * @param {updateDBVal} value - The value to update in the DB
     * @returns {Promise<Boolean>} Whether the request was successful or not
     *
     * @memberof MongoProvider
     */
Update AxonConfig in the DB.
Update the specific key with the value given as second parameters.
Generic method to update Database.

@param {String} key - The identifier in the Database
@param {updateDBVal} value - The value to update in the DB
@returns {Promise} Whether the request was successful or not


Update AxonConfig in the DB . Update the specific key with the value given as second parameters . Generic method to update Database . @param { String } key - The identifier in the Database @param { updateDBVal } value - The value to update in the DB @returns { Promise } Whether the request was successful or not
updateAxon(key, value) {
        return this.AxonSchema.updateOne( {
            id: '1',
        },
        {
            $set: {
                [key]: value,
                updatedAt: new Date(),
            },
        } ).lean().exec()
            .then(res => !!res.nModified);
    }
updateAxon ( key , value ) { return this . AxonSchema . updateOne ( { id : '1' , } , { $set : { [ key ] : value , updatedAt : new Date ( ) , } , } ) . lean ( ) . exec ( ) . then ( res => ! ! res . nModified ) ; }
Update AxonConfig in the DB.
Update AxonConfig in the DB .