backend/backendname/bin/domain/msentityname/msentitypascalES.js
/**
     * Persists the msentitypascal on the materialized view according to the received data from the event store.
     * @param {*} msentitypascalCreatedEvent msentitypascal created event
     */
Persists the msentitypascal on the materialized view according to the received data from the event store.
@param {*} msentitypascalCreatedEvent msentitypascal created event
Persists the msentitypascal on the materialized view according to the received data from the event store . @param { * } msentitypascalCreatedEvent msentitypascal created event
handlemsentitypascalCreated$({ aid, data, user, timestamp }) {
        const msentitypascal = {
            ...data,
            creatorUser: user,
            creationTimestamp: timestamp,
            modifierUser: user,
            modificationTimestamp: timestamp,
            _id: aid,
        };
        return msentitypascalDA.createmsentitypascal$(msentitypascal).pipe(
            mergeMap(result => broker.send$(MATERIALIZED_VIEW_TOPIC, `msentitypascalUpdatedSubscription`, result.ops[0]))
        );
    }
handlemsentitypascalCreated$ ( { aid , data , user , timestamp } ) { const msentitypascal = { ... data , creatorUser : user , creationTimestamp : timestamp , modifierUser : user , modificationTimestamp : timestamp , _id : aid , } ; return msentitypascalDA . createmsentitypascal$ ( msentitypascal ) . pipe ( mergeMap ( result => broker . send$ ( MATERIALIZED_VIEW_TOPIC , ` ` , result . ops [ 0 ] ) ) ) ; }
Persists the msentitypascal on the materialized view according to the received data from the event store.
Persists the msentitypascal on the materialized view according to the received data from the event store .