diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-02-25 02:07:51 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-02-25 02:07:51 +0000 |
commit | b818d07b0871c44dff9ab7d96afd6d7141b58426 (patch) | |
tree | 28b7d276ba247f4756fa8890a5dd7e5f822e85b8 /put_in_db.js | |
parent | update for howtogetyoursmsonirc.md (diff) | |
download | blog-b818d07b0871c44dff9ab7d96afd6d7141b58426.tar.gz blog-b818d07b0871c44dff9ab7d96afd6d7141b58426.zip |
added new post
Diffstat (limited to 'put_in_db.js')
-rw-r--r-- | put_in_db.js | 24 |
1 files changed, 17 insertions, 7 deletions
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, +// }, +// ); |