From b818d07b0871c44dff9ab7d96afd6d7141b58426 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 24 Feb 2024 21:07:51 -0500 Subject: added new post --- put_in_db.js | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'put_in_db.js') diff --git a/put_in_db.js b/put_in_db.js index cbc7f8d..d677b08 100644 --- a/put_in_db.js +++ b/put_in_db.js @@ -42,12 +42,22 @@ blogs = [ keywords: "irc,bot,sms", lastUpdatedAt: Date.now(), }, -]; - -// db.blogposts.insertMany(blogs); -db.blogposts.updateMany( - { $set: blogs }, { - upsert: true, + title: + "What to do with your DNS when ODoH's Trust-Me-Bruh Model doesn't work for you", + slug: "What_to_do_with_your_DNS_when_ODoHs_Trust_Me_Bruh_Model_doesnt_work_for_you", + body: fs.readFileSync(path.join(__dirname) + "/mds/DNS.md"), + teaser: + "What to do with your DNS when ODoH's Trust-Me-Bruh Model doesn't work for you", + keywords: "DNS,DoH,DoT,ODoH,Tor,dnscrypt-proxy,vagrant", + lastUpdatedAt: Date.now(), }, -); +]; + +db.blogposts.insertMany(blogs); +// db.blogposts.updateMany( +// { $set: blogs }, +// { +// upsert: true, +// }, +// ); -- cgit v1.2.3