diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-01-19 02:39:50 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-01-19 02:39:50 +0000 |
commit | 4e7a16f1cd9b778a1c1e1984b4f3f60b462bcd64 (patch) | |
tree | 10b2338165633d8deb8cd3b859beb3dbb41b79f6 /put_in_db.js | |
parent | update for lazymakefiles (diff) | |
download | blog-4e7a16f1cd9b778a1c1e1984b4f3f60b462bcd64.tar.gz blog-4e7a16f1cd9b778a1c1e1984b4f3f60b462bcd64.zip |
updates for the blog entries
Diffstat (limited to 'put_in_db.js')
-rw-r--r-- | put_in_db.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/put_in_db.js b/put_in_db.js index fadcc42..eb91672 100644 --- a/put_in_db.js +++ b/put_in_db.js @@ -26,7 +26,7 @@ blogs = [ title: "One Chat Client For Everything", slug: "one_chat_client_for_everything", body: fs.readFileSync( - path.join(__dirname) + "/mds/oneclientforeverything.md" + path.join(__dirname) + "/mds/oneclientforeverything.md", ), teaser: "One Chat Client For Everything", keywords: "irc,matrix,mattermost,matterbridge,bitlbee,irssi", @@ -34,10 +34,10 @@ blogs = [ }, ]; -// db.blogposts.insertMany([blog_entry_1, blog_entry_2, blog_entry_3]); +// db.blogposts.insertMany(blogs); db.blogposts.updateMany( { $set: blogs }, { upsert: true, - } + }, ); |