MCPcopy Index your code
hub / github.com/YMFE/yapi / up

Method up

server/models/project.js:232–241  ·  view source on GitHub ↗
(id, data)

Source from the content-addressed store, hash-verified

230 }
231
232 up(id, data) {
233 data.up_time = yapi.commons.time();
234 return this.model.update(
235 {
236 _id: id
237 },
238 data,
239 { runValidators: true }
240 );
241 }
242
243 addMember(id, data) {
244 return this.model.update(

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected