mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-03 08:45:40 +02:00
a47baf7f23
* Fixed panic in PropDef.GetValue for `person` property types. - the GetUserByID API can return a nil user and nil error * return userid * support old archive format * move template init to app layer * move app init * init app * revert * ignore GetDefaultTemplate blocks call in store mock * ignore GetDefaultTemplate blocks call in store mock2 * ignore InsertBlockss call in store mock3 * ignore RemoveDefaultTemplates call in store mock4 * ignore WriteFile call in files mock5 * ignore WriteFile call in files mock6 * ignore WriteFile call in files mock7 * ignore WriteFile call in files mock8 * fix unit tests Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
13 lines
329 B
Go
13 lines
329 B
Go
package app
|
|
|
|
import "github.com/mattermost/mattermost-server/v6/shared/mlog"
|
|
|
|
// initialize is called when the App is first created.
|
|
func (a *App) initialize(skipTemplateInit bool) {
|
|
if !skipTemplateInit {
|
|
if err := a.initializeTemplates(); err != nil {
|
|
a.logger.Error(`InitializeTemplates failed`, mlog.Err(err))
|
|
}
|
|
}
|
|
}
|