Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 12 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { AggregateRoot } from '@nestjs/cqrs'; |
||
2 | import { TryAggregateRootEvent } from '../events/test.events'; |
||
3 | |||
4 | export class TestModel extends AggregateRoot { |
||
5 | constructor() { |
||
6 | super(); |
||
7 | } |
||
8 | applyEvent(message: string) { |
||
9 | this.apply(new TryAggregateRootEvent(message)); |
||
10 | } |
||
11 | } |
||
12 |