backend/backendname/bin/domain/msentityname/msentitypascalES.js
/**
     * updates the state on the materialized view according to the received data from the event store.
     * @param {*} msentitypascalStateUpdatedEvent events that indicates the new state of the msentitypascal
     */
updates the state on the materialized view according to the received data from the event store.
@param {*} msentitypascalStateUpdatedEvent events that indicates the new state of the msentitypascal
updates the state on the materialized view according to the received data from the event store . @param { * } msentitypascalStateUpdatedEvent events that indicates the new state of the msentitypascal
handlemsentitypascalStateUpdated$({ aid, data, user, timestamp }) {
        const { state } = data;
        return msentitypascalDA.updatemsentitypascalState$(aid, state, user, timestamp).pipe(
            mergeMap(result => broker.send$(MATERIALIZED_VIEW_TOPIC, `msentitypascalUpdatedSubscription`, result))
        );
    }
handlemsentitypascalStateUpdated$ ( { aid , data , user , timestamp } ) { const { state } = data ; return msentitypascalDA . updatemsentitypascalState$ ( aid , state , user , timestamp ) . pipe ( mergeMap ( result => broker . send$ ( MATERIALIZED_VIEW_TOPIC , ` ` , result ) ) ) ; }
updates the state on the materialized view according to the received data from the event store.
updates the state on the materialized view according to the received data from the event store .