MCPcopy
hub / github.com/chartbrew/chartbrew / update

Method update

server/controllers/TeamController.js:338–346  ·  view source on GitHub ↗
(id, data)

Source from the content-addressed store, hash-verified

336 }
337
338 update(id, data) {
339 return db.Team.update(data, { where: { "id": id } })
340 .then(() => {
341 return this.findById(id);
342 })
343 .catch((error) => {
344 return new Promise((resolve, reject) => reject(error));
345 });
346 }
347
348 getUserTeams(userId) {
349 return db.TeamRole.findAll({ where: { user_id: userId } })

Callers 15

_getChartOptionsFunction · 0.45
index.jsFile · 0.45
getOrchestrationFunction · 0.45
deleteConversationFunction · 0.45
createFunction · 0.45
updateFunction · 0.45
addIntegrationFunction · 0.45
transferOwnershipMethod · 0.45
addTeamRoleMethod · 0.45
addProjectAccessMethod · 0.45
removeProjectAccessMethod · 0.45
updateTeamRoleMethod · 0.45

Calls 1

findByIdMethod · 0.95

Tested by 1

createTemplateProjectFunction · 0.36