File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 26
26
" claude" ,
27
27
" ai"
28
28
],
29
- "author" : " " ,
29
+ "author" : " Nabid Salehin " ,
30
30
"license" : " MIT" ,
31
31
"dependencies" : {
32
32
"@modelcontextprotocol/sdk" : " ^1.6.0" ,
Original file line number Diff line number Diff line change @@ -11,14 +11,7 @@ const productSchema = new mongoose.Schema({
11
11
deletedAt : Date
12
12
} ) ;
13
13
14
- // Add any pre/post hooks or methods if needed
15
- productSchema . pre ( 'find' , function ( ) {
16
- // By default, exclude deleted documents from queries
17
- if ( ! this . _conditions . includeDeleted ) {
18
- this . where ( { isDeleted : { $ne : true } } ) ;
19
- }
20
- } ) ;
21
14
22
- const Product = mongoose . model ( 'Product ' , productSchema ) ;
15
+ const Product = mongoose . model ( 'product ' , productSchema ) ;
23
16
24
17
export default Product ;
Original file line number Diff line number Diff line change @@ -9,14 +9,6 @@ const userSchema = new mongoose.Schema({
9
9
deletedAt : Date
10
10
} ) ;
11
11
12
- // Add any pre/post hooks or methods if needed
13
- userSchema . pre ( 'find' , function ( ) {
14
- // By default, exclude deleted documents from queries
15
- if ( ! this . _conditions . includeDeleted ) {
16
- this . where ( { isDeleted : { $ne : true } } ) ;
17
- }
18
- } ) ;
19
-
20
- const User = mongoose . model ( 'User' , userSchema ) ;
12
+ const User = mongoose . model ( 'user' , userSchema ) ;
21
13
22
14
export default User ;
You can’t perform that action at this time.
0 commit comments