MCPcopy
hub / github.com/YMFE/yapi / getByEnv

Method getByEnv

server/models/project.js:124–131  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

122 }
123
124 getByEnv(id) {
125 return this.model
126 .findOne({
127 _id: id
128 })
129 .select('env')
130 .exec().then(this.handleEnvNullData);
131 }
132
133 getProjectWithAuth(group_id, uid) {
134 return this.model.countDocuments({

Callers 2

getEnvMethod · 0.80
runAutoTestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected