Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
30f6d532
Commit
30f6d532
authored
11 months ago
by
Anton Sattarov
Browse files
Options
Downloads
Patches
Plain Diff
fix panic
parent
ba62b07c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/items/middleware/caching_middleware.go
+5
-2
5 additions, 2 deletions
pkg/items/middleware/caching_middleware.go
with
5 additions
and
2 deletions
pkg/items/middleware/caching_middleware.go
+
5
−
2
View file @
30f6d532
...
...
@@ -47,8 +47,10 @@ func (m cachingMiddleware) Get(ctx context.Context, spaceId, envId, collectionId
for
_
,
al
:=
range
env
.
Aliases
{
_
=
m
.
cache
.
Set
(
makeKey
(
itm
.
SpaceID
,
al
,
itm
.
CollectionID
,
itm
.
ID
),
itm
)
}
return
itm
.
Clone
(),
err
}
return
itm
.
Clone
(),
err
return
nil
,
err
}
func
(
m
cachingMiddleware
)
Update
(
ctx
context
.
Context
,
item
*
service
.
Item
,
options
...*
service
.
UpdateOptions
)
(
err
error
)
{
...
...
@@ -152,9 +154,10 @@ func (m cachingMiddleware) GetPublished(ctx context.Context, spaceId, envId, col
for
_
,
al
:=
range
env
.
Aliases
{
_
=
m
.
cachePublished
.
Set
(
makeKey
(
itm
.
SpaceID
,
al
,
itm
.
CollectionID
,
itm
.
ID
),
value
)
}
return
itm
.
Clone
(),
err
}
return
itm
.
Clone
()
,
err
return
nil
,
err
}
func
(
m
cachingMiddleware
)
Archive
(
ctx
context
.
Context
,
item
*
service
.
Item
,
options
...*
service
.
ArchiveOptions
)
(
err
error
)
{
...
...
This diff is collapsed.
Click to expand it.
Pavel Antonov
@softzilla
mentioned in commit
0f5d76df
·
11 months ago
mentioned in commit
0f5d76df
mentioned in commit 0f5d76dff8be228934f555add73d7df51dea6b33
Toggle commit list
Pavel Antonov
@softzilla
mentioned in commit
923ccdd6
·
11 months ago
mentioned in commit
923ccdd6
mentioned in commit 923ccdd68cdd48f9e61d093b40de4eea114a5bed
Toggle commit list
Pavel Antonov
@softzilla
mentioned in commit
6dd858fe
·
11 months ago
mentioned in commit
6dd858fe
mentioned in commit 6dd858fe3edd7086cf90650db132a20141712cad
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment