Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TouHou.FM
Radio Go
Playlist
Commits
5bfd4c68
Verified
Commit
5bfd4c68
authored
Feb 08, 2021
by
Daniel Sonck
Browse files
Fix cursor decoding
parent
936de1f3
Pipeline
#432
waiting for manual action with stages
in 4 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
5bfd4c68
...
...
@@ -62,6 +62,8 @@ app:package:
artifacts
:
true
-
job
:
app:build
artifacts
:
true
variables
:
GOCACHE
:
'
.go'
stage
:
package
tags
:
-
kubernetes
...
...
internal/graphql/model/main.go
View file @
5bfd4c68
...
...
@@ -35,7 +35,7 @@ func (after *Cursor) Parse(prefix string) (start int, err error) {
if
!
strings
.
HasPrefix
((
string
)(
cursor
),
prefix
+
":"
)
{
return
0
,
fmt
.
Errorf
(
"illegal cursor"
)
}
start
,
err
=
strconv
.
Atoi
((
string
)(
*
afte
r
)[
len
(
prefix
)
+
1
:
])
start
,
err
=
strconv
.
Atoi
((
string
)(
curso
r
)[
len
(
prefix
)
+
1
:
])
if
err
!=
nil
{
return
0
,
fmt
.
Errorf
(
"illegal cursor: %w"
,
err
)
}
...
...
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