aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/DashUserModel.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-10 17:49:41 -0400
committerbobzel <zzzman@gmail.com>2020-10-10 17:49:41 -0400
commitd123cac247bcc37aa00fe44a4933df86b71e93af (patch)
tree36060b427c7622d2b7d8c71e6df22c5517927315 /src/server/authentication/DashUserModel.ts
parent7314eace7c9df5d283b9c02cf08cc25857b88dd4 (diff)
split LinkDatbase into its own field in the user's registry. fixed sharing to set lastModified after modifying groups so that remote participants see the right data. fixed text boxes to show blue icon when there's an annotaitn entry
Diffstat (limited to 'src/server/authentication/DashUserModel.ts')
-rw-r--r--src/server/authentication/DashUserModel.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/authentication/DashUserModel.ts b/src/server/authentication/DashUserModel.ts
index 4f2856a78..bee28b96d 100644
--- a/src/server/authentication/DashUserModel.ts
+++ b/src/server/authentication/DashUserModel.ts
@@ -11,6 +11,7 @@ export type DashUserModel = mongoose.Document & {
userDocumentId: string;
sharingDocumentId: string;
+ linkDatabaseId: string;
cacheDocumentIds: string;
profile: {
@@ -39,7 +40,8 @@ const userSchema = new mongoose.Schema({
userDocumentId: String, // id that identifies a document which hosts all of a user's account data
sharingDocumentId: String, // id that identifies a document that stores documents shared to a user, their user color, and any additional info needed to communicate between users
- cacheDocumentIds: String,
+ linkDatabaseId: String,
+ cacheDocumentIds: String, // set of document ids to retreive on startup
facebook: String,
twitter: String,