Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model 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
elixxir
xxdk-wasm
Commits
f5d84135
Commit
f5d84135
authored
1 year ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
guard against bad upsert op
parent
4da16211
No related branches found
No related tags found
3 merge requests
!116
XX-4684 / Use new wasm-utils repo
,
!110
guard against bad upsert op
,
!67
fix for latest client release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indexedDb/impl/channels/implementation.go
+3
-2
3 additions, 2 deletions
indexedDb/impl/channels/implementation.go
with
3 additions
and
2 deletions
indexedDb/impl/channels/implementation.go
+
3
−
2
View file @
f5d84135
...
...
@@ -414,8 +414,9 @@ func (w *wasmModel) upsertMessage(msg *Message) (uint64, error) {
// Store message to database
msgIdObj
,
err
:=
impl
.
Put
(
w
.
db
,
messageStoreName
,
messageObj
)
if
err
!=
nil
{
return
0
,
errors
.
Errorf
(
"Unable to put Message: %+v"
,
err
)
if
err
!=
nil
||
msgIdObj
.
Equal
(
js
.
Undefined
())
{
return
0
,
errors
.
Errorf
(
"Unable to put Message: %+v
\n
%s"
,
err
,
newMessageJson
)
}
uuid
:=
msgIdObj
.
Int
()
...
...
This diff is collapsed.
Click to expand it.
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