MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / sanitizeTemplateConnection

Function sanitizeTemplateConnection

server/controllers/TemplateController.js:29–39  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

27};
28
29const sanitizeTemplateConnection = (connection) => {
30 const {
31 id, type, subType, name,
32 } = toPlainObject(connection);
33 return {
34 id,
35 type,
36 subType,
37 name,
38 };
39};
40
41module.exports.findById = (id) => {
42 return db.Template.findByPk(id);

Callers 1

Calls 1

toPlainObjectFunction · 0.70

Tested by

no test coverage detected