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:
parent
9f82537f9e
commit
d82fb1127f
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user