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
86be55f3
Commit
86be55f3
authored
2 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix updateMessageStatus
parent
5b0bfeca
No related branches found
No related tags found
2 merge requests
!60
Revert "Fail a test to be sure it works"
,
!4
Xx 4114/index db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indexedDb/init.go
+0
-6
0 additions, 6 deletions
indexedDb/init.go
indexedDb/model.go
+1
-10
1 addition, 10 deletions
indexedDb/model.go
with
1 addition
and
16 deletions
indexedDb/init.go
+
0
−
6
View file @
86be55f3
...
...
@@ -100,12 +100,6 @@ func v1Upgrade(db *idb.Database) error {
return
err
}
// Build User ObjectStore
//_, err = db.CreateObjectStore(userStoreName, storeOpts)
//if err != nil {
// return err
//}
// Build Channel ObjectStore
_
,
err
=
db
.
CreateObjectStore
(
channelsStoreName
,
storeOpts
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
indexedDb/model.go
+
1
−
10
View file @
86be55f3
...
...
@@ -19,8 +19,7 @@ const (
pkeyName
=
"id"
// Text representation of the names of the various [idb.ObjectStore].
messageStoreName
=
"messages"
//userStoreName = "users"
messageStoreName
=
"messages"
channelsStoreName
=
"channels"
// Message index names.
...
...
@@ -37,7 +36,6 @@ const (
)
// Message defines the IndexedDb representation of a single Message.
// A Message belongs to one User (Sender).
// A Message belongs to one Channel.
// A Message may belong to one Message (Parent).
type
Message
struct
{
...
...
@@ -53,13 +51,6 @@ type Message struct {
Text
string
`json:"text"`
}
// User defines the IndexedDb representation of a single User.
// A User has many Message.
//type User struct {
// Id []byte `json:"id"` // Matches pkeyName
// Username string `json:"username"`
//}
// Channel defines the IndexedDb representation of a single Channel
// A Channel has many Message.
type
Channel
struct
{
...
...
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