Completed
Push — master ( 3ca971...d2d9a7 )
by Sergey
02:11
created

AsyncService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A getRbac 0 6 1
1
import { IDynamicStorageRbac, IStorageRbac } from '../../../src';
2
import { RBAC } from '../storage';
3
import { Injectable } from '@nestjs/common';
4
5
@Injectable()
6
export class AsyncService implements IDynamicStorageRbac{
7
  async getRbac(): Promise<IStorageRbac> {
8
    return new Promise((resolve)=>{
9
      // resolve(RBAC)
10
        setTimeout(()=>{
11
            resolve(RBAC)
12
        },1000)
13
    })
14
  }
15
}