不要怂,就是干,撸起袖子干!

Commit bea761e7 by Pranav Raj S

Fixed errors in query

1 parent 377587a8
Showing with 2 additions and 2 deletions
......@@ -21,7 +21,7 @@ Post.findAll({
status: active
}
});
// SELECT * FROM post WHERE authorId = 12
// SELECT * FROM post WHERE authorId = 12 AND status = 'active';
Post.destroy({
where: {
......@@ -31,7 +31,7 @@ Post.destroy({
// DELETE FROM post WHERE status = 'inactive';
Post.update({
deletedAt: null,
updatedAt: null,
}, {
where: {
deletedAt: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!