We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d382fe1 + 8f8b6f5 commit 69c21d5Copy full SHA for 69c21d5
app/manage/teams.js
@@ -122,8 +122,11 @@ async function updateTeam (req, reply) {
122
await profile.setProfile(tags, 'team', id)
123
}
124
const teamData = dissoc('tags', body)
125
- const data = await team.update(id, teamData)
126
- reply.send(data)
+ let updatedTeam = {}
+ if (teamData) {
127
+ updatedTeam = await team.update(id, teamData)
128
+ }
129
+ reply.send(updatedTeam)
130
} catch (err) {
131
console.log(err)
132
return reply.boom.badRequest(err.message)
0 commit comments