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
fa62e8b5
Commit
fa62e8b5
authored
Feb 20, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak linter errors
parent
8e11826d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
workspace_service.go
api/v2/workspace_service.go
+1
-1
workspace_setting.go
store/db/postgres/workspace_setting.go
+2
-1
No files found.
api/v2/workspace_service.go
View file @
fa62e8b5
...
@@ -6,7 +6,7 @@ import (
...
@@ -6,7 +6,7 @@ import (
apiv2pb
"github.com/usememos/memos/proto/gen/api/v2"
apiv2pb
"github.com/usememos/memos/proto/gen/api/v2"
)
)
func
(
s
*
APIV2Service
)
GetWorkspaceProfile
(
ctx
context
.
Context
,
_
*
apiv2pb
.
GetWorkspaceProfileRequest
)
(
*
apiv2pb
.
GetWorkspaceProfileResponse
,
error
)
{
func
(
s
*
APIV2Service
)
GetWorkspaceProfile
(
_
context
.
Context
,
_
*
apiv2pb
.
GetWorkspaceProfileRequest
)
(
*
apiv2pb
.
GetWorkspaceProfileResponse
,
error
)
{
workspaceProfile
:=
&
apiv2pb
.
WorkspaceProfile
{
workspaceProfile
:=
&
apiv2pb
.
WorkspaceProfile
{
Version
:
s
.
Profile
.
Version
,
Version
:
s
.
Profile
.
Version
,
Mode
:
s
.
Profile
.
Mode
,
Mode
:
s
.
Profile
.
Mode
,
...
...
store/db/postgres/workspace_setting.go
View file @
fa62e8b5
...
@@ -4,9 +4,10 @@ import (
...
@@ -4,9 +4,10 @@ import (
"context"
"context"
"strings"
"strings"
"google.golang.org/protobuf/encoding/protojson"
storepb
"github.com/usememos/memos/proto/gen/store"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
"google.golang.org/protobuf/encoding/protojson"
)
)
func
(
d
*
DB
)
UpsertWorkspaceSetting
(
ctx
context
.
Context
,
upsert
*
store
.
WorkspaceSetting
)
(
*
store
.
WorkspaceSetting
,
error
)
{
func
(
d
*
DB
)
UpsertWorkspaceSetting
(
ctx
context
.
Context
,
upsert
*
store
.
WorkspaceSetting
)
(
*
store
.
WorkspaceSetting
,
error
)
{
...
...
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