Skip to content
Snippets Groups Projects
Commit 86be55f3 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix updateMessageStatus

parent 5b0bfeca
No related branches found
No related tags found
2 merge requests!60Revert "Fail a test to be sure it works",!4Xx 4114/index db
......@@ -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 {
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment