MCPcopy Create free account
hub / github.com/thinkjs/thinkjs / success

Function success

test/case/extend/controller.js:71–77  ·  view source on GitHub ↗
(data, message)

Source from the content-addressed store, hash-verified

69 return data;
70 },
71 success(data, message) {
72 return {
73 errno: 0,
74 data,
75 errmsg: message || ''
76 };
77 },
78 fail({errno, errmsg, data}) {
79 return {errno, errmsg, data};
80 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…