examples/server1/src/handlers/rabbit.event.handler.ts   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 10
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 10
rs 10
c 0
b 0
f 0
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A RabbitEventHandler.handle 0 2 1
1
import { EventsHandler, IEventHandler } from '@nestjs/cqrs';
2
import { RabbitEvent } from '../events/rabbit.event';
3
4
@EventsHandler(RabbitEvent)
5
export class RabbitEventHandler implements IEventHandler<RabbitEvent> {
6
    handle(event: RabbitEvent) {
7
        console.debug('handling event from RabbitEventHandler:\n', event);
8
    }
9
}
10