1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-20 18:28:25 +02:00

Set type as private for onboarding board

This commit is contained in:
Harshil Sharma 2022-03-30 14:15:07 +05:30
parent 9f82537f9e
commit d82fb1127f

View File

@ -81,5 +81,15 @@ func (a *App) createWelcomeBoard(userID, teamID string) (string, error) {
return "", errCannotCreateBoard
}
newType := model.BoardTypePrivate
patch := &model.BoardPatch{
Type: &newType,
}
if _, err := a.PatchBoard(patch, bab.Boards[0].ID, userID); err != nil {
return "", err
}
return bab.Boards[0].ID, nil
}