Skip to content

Commit f03e31e

Browse files
committed
set author info
1 parent db29d19 commit f03e31e

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"claude",
2727
"ai"
2828
],
29-
"author": "",
29+
"author": "Nabid Salehin ",
3030
"license": "MIT",
3131
"dependencies": {
3232
"@modelcontextprotocol/sdk": "^1.6.0",

models_samples/product.js renamed to sample_models/product.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@ const productSchema = new mongoose.Schema({
1111
deletedAt: Date
1212
});
1313

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-
});
2114

22-
const Product = mongoose.model('Product', productSchema);
15+
const Product = mongoose.model('product', productSchema);
2316

2417
export default Product;

models_samples/user.js renamed to sample_models/user.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ const userSchema = new mongoose.Schema({
99
deletedAt: Date
1010
});
1111

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);
2113

2214
export default User;

0 commit comments

Comments
 (0)