From eedfe427e265c3b6b11514c6fd6e46df7ffad889 Mon Sep 17 00:00:00 2001 From: Harshil Sharma Date: Thu, 31 Mar 2022 10:33:40 +0530 Subject: [PATCH] Used gobal team ID --- server/app/onboarding.go | 2 +- server/app/templates.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/onboarding.go b/server/app/onboarding.go index 3e6dbb9ea..8a015398d 100644 --- a/server/app/onboarding.go +++ b/server/app/onboarding.go @@ -46,7 +46,7 @@ func (a *App) PrepareOnboardingTour(userID string, teamID string) (string, strin } func (a *App) getOnboardingBoardID() (string, error) { - boards, err := a.store.GetTemplateBoards("0", "") + boards, err := a.store.GetTemplateBoards(globalTeamID, "") if err != nil { return "", err } diff --git a/server/app/templates.go b/server/app/templates.go index 2b05827de..96c1e7453 100644 --- a/server/app/templates.go +++ b/server/app/templates.go @@ -23,7 +23,7 @@ func (a *App) InitTemplates() error { // initializeTemplates imports default templates if the boards table is empty. func (a *App) initializeTemplates() (bool, error) { - boards, err := a.store.GetTemplateBoards(globalTeamID) + boards, err := a.store.GetTemplateBoards(globalTeamID, "") if err != nil { return false, fmt.Errorf("cannot initialize templates: %w", err) }