Passed
Push — master ( 1adf40...f067da )
by lv
01:05
created

app/model/catering/customer_to_store.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 1
eloc 9
c 0
b 0
f 0
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 13
rs 10
bpm 1
cpm 1
noi 3

1 Function

Rating   Name   Duplication   Size   Complexity  
A module.exports.add 0 4 1
1
const DB = require('../../libraries/db')
0 ignored issues
show
Unused Code introduced by
The constant DB seems to be never used. Consider removing it.
Loading history...
2
const ApiError = require('../../util/api_error')
0 ignored issues
show
Unused Code introduced by
The constant ApiError seems to be never used. Consider removing it.
Loading history...
3
const config = require('../../../config/config')
0 ignored issues
show
Unused Code introduced by
The constant config seems to be never used. Consider removing it.
Loading history...
4
const ModelBase = require('../base')
5
6
const table = 'mist_customer_to_store'
7
8
module.exports = {
9
    add: async function (data) {
10
        let res = await ModelBase.execInsert(table, data)
11
        return res
12
    },
13
}