-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix add code to update loggedusermodel (#156)
* Fix add code to update loggedusermodel * add fix for blog seeds
- Loading branch information
1 parent
fa2bf88
commit 2223abf
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { BlogModel } from "../models/blogModel"; | ||
import { CommentModel } from "../models/commentModel"; | ||
import { LikeModel } from "../models/likeModel"; | ||
import { CommentLikeModel } from "../models/commentLike"; | ||
import { CommentReplyModel } from "../models/CommentReply"; | ||
|
||
const seedBlogs = async () => { | ||
await BlogModel.deleteMany({}); | ||
await CommentModel.deleteMany({}); | ||
await CommentLikeModel.deleteMany({}); | ||
await LikeModel.deleteMany({}); | ||
await CommentReplyModel.deleteMany({}); | ||
}; | ||
|
||
export default seedBlogs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters