Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
a376dc4d
Commit
a376dc4d
authored
Apr 10, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix linter
parent
8ee56bd2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
workspace_setting.go
store/db/mysql/workspace_setting.go
+1
-1
workspace_setting.go
store/db/postgres/workspace_setting.go
+1
-1
workspace_setting.go
store/db/sqlite/workspace_setting.go
+1
-1
No files found.
store/db/mysql/workspace_setting.go
View file @
a376dc4d
...
...
@@ -85,7 +85,7 @@ func (d *DB) UpsertWorkspaceSettingV1(ctx context.Context, upsert *storepb.Works
}
else
if
upsert
.
Key
==
storepb
.
WorkspaceSettingKey_WORKSPACE_SETTING_TELEGRAM_INTEGRATION
{
valueBytes
,
err
=
protojson
.
Marshal
(
upsert
.
GetTelegramIntegrationSetting
())
}
else
{
return
nil
,
errors
.
New
(
fmt
.
Sprintf
(
"unsupported workspace setting key: %s"
,
upsert
.
Key
.
String
())
)
return
nil
,
fmt
.
Errorf
(
"unsupported workspace setting key: %v"
,
upsert
.
Key
)
}
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"failed to marshal workspace setting value"
)
...
...
store/db/postgres/workspace_setting.go
View file @
a376dc4d
...
...
@@ -95,7 +95,7 @@ func (d *DB) UpsertWorkspaceSettingV1(ctx context.Context, upsert *storepb.Works
}
else
if
upsert
.
Key
==
storepb
.
WorkspaceSettingKey_WORKSPACE_SETTING_TELEGRAM_INTEGRATION
{
valueBytes
,
err
=
protojson
.
Marshal
(
upsert
.
GetTelegramIntegrationSetting
())
}
else
{
return
nil
,
errors
.
New
(
fmt
.
Sprintf
(
"unsupported workspace setting key: %s"
,
upsert
.
Key
.
String
())
)
return
nil
,
fmt
.
Errorf
(
"unsupported workspace setting key: %v"
,
upsert
.
Key
)
}
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"failed to marshal workspace setting value"
)
...
...
store/db/sqlite/workspace_setting.go
View file @
a376dc4d
...
...
@@ -95,7 +95,7 @@ func (d *DB) UpsertWorkspaceSettingV1(ctx context.Context, upsert *storepb.Works
}
else
if
upsert
.
Key
==
storepb
.
WorkspaceSettingKey_WORKSPACE_SETTING_TELEGRAM_INTEGRATION
{
valueBytes
,
err
=
protojson
.
Marshal
(
upsert
.
GetTelegramIntegrationSetting
())
}
else
{
return
nil
,
errors
.
New
(
fmt
.
Sprintf
(
"unsupported workspace setting key: %s"
,
upsert
.
Key
.
String
())
)
return
nil
,
fmt
.
Errorf
(
"unsupported workspace setting key: %v"
,
upsert
.
Key
)
}
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"failed to marshal workspace setting value"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment