(connection)
| 27 | }; |
| 28 | |
| 29 | const 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 | |
| 41 | module.exports.findById = (id) => { |
| 42 | return db.Template.findByPk(id); |
no test coverage detected