Total Complexity | 1 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import {Injectable} from '@nestjs/common'; |
||
6 | |||
7 | @Injectable() |
||
8 | export class AddressRepository implements IAddressRepository { |
||
9 | constructor( |
||
10 | @InjectRepository(Address) |
||
11 | private readonly repository: Repository<Address> |
||
12 | ) {} |
||
13 | |||
14 | public save(address: Address): Promise<Address> { |
||
15 | return this.repository.save(address); |
||
16 | } |
||
18 |