Workspace switcher query Mysql issue resolved (#1252)

Co-authored-by: Jesús Espino <jespinog@gmail.com>
This commit is contained in:
Harshil Sharma 2021-09-20 14:14:19 +05:30 committed by GitHub
parent f6299e5116
commit 5faa669739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -352,7 +352,7 @@ func (s *MattermostAuthLayer) GetUserWorkspaces(userID string) ([]model.UserWork
switch s.dbType {
case mysqlDBType:
nonTemplateFilter = "focalboard_blocks.fields LIKE %\"isTemplate\":false%"
nonTemplateFilter = "focalboard_blocks.fields LIKE '%\"isTemplate\":false%'"
case postgresDBType:
nonTemplateFilter = "focalboard_blocks.fields ->> 'isTemplate' = 'false'"
default: