Skip to content
Permalink
Browse files

Re-added mongoose-uuid2 as a dependency.

  • Loading branch information
nero120 committed Jan 5, 2020
1 parent d3385cf commit c2a05fdbb6b7bf21b5c0c6b29c54f54f3bca9d35
Showing with 31 additions and 6 deletions.
  1. +3 −1 dist/models/bookmarks.model.js
  2. +1 −1 dist/models/bookmarks.model.js.map
  3. +23 −3 package-lock.json
  4. +1 −0 package.json
  5. +3 −1 src/models/bookmarks.model.ts

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

@@ -29,6 +29,7 @@
"moment": "^2.24.0",
"mongodb": "^3.4.1",
"mongoose": "^5.8.4",
"mongoose-uuid2": "^2.3.0",
"saslprep": "^1.0.3",
"smooth-scroll": "^16.1.0",
"typeface-roboto-condensed": "0.0.75",
@@ -17,7 +17,9 @@ export interface IBookmarksModel extends IBookmarks, mongoose.Document {

// Implements a mongoose schema and model to connect data service methods to MongoDB collection
export default (() => {
require('mongoose-uuid2')(mongoose);
const types: any = mongoose.Types;
const UUID = types.UUID;

// Create bookmarks schema to store bookmarks sync data
// Store IDs as binary uuid v4 and disable default id properties
@@ -26,7 +28,7 @@ export default (() => {
{
_id: {
default: uuid.v4,
type: String
type: UUID
},
bookmarks: String,
lastAccessed: {

0 comments on commit c2a05fd

Please sign in to comment.
You can’t perform that action at this time.