Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(fix) comment vote counter is a string
· 067ece54
Martin Santangelo
authored
Nov 11, 2019
067ece54
Merge branch 'fix/comments-vote-counter' into release/3.11.0
· bb7275ee
Martin Santangelo
authored
Nov 11, 2019
bb7275ee
Hide whitespace changes
Inline
Side-by-side
src/common/BaseModel.js
View file @
bb7275ee
...
...
@@ -206,7 +206,7 @@ export default class BaseModel {
this
[
'
thumbs:
'
+
direction
+
'
:user_guids
'
]
=
[
sessionService
.
guid
,
...
guids
];
}
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
+
=
delta
;
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
=
parseInt
(
this
[
'
thumbs:
'
+
direction
+
'
:count
'
],
10
)
+
delta
;
const
params
=
this
.
getClientMetadata
();
...
...
@@ -220,7 +220,7 @@ export default class BaseModel {
}
else
{
this
[
'
thumbs:
'
+
direction
+
'
:user_guids
'
]
=
[
sessionService
.
guid
,
...
guids
];
}
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
-
=
delta
;
this
[
'
thumbs:
'
+
direction
+
'
:count
'
]
=
parseInt
(
this
[
'
thumbs:
'
+
direction
+
'
:count
'
],
10
)
-
delta
;
throw
err
;
}
}
...
...