]> git.r.bdr.sh - rbdr/pinboard-linkblog-updater/commitdiff
Use all instead of get
authorRuben Beltran del Rio <redacted>
Sun, 11 Dec 2022 12:16:34 +0000 (13:16 +0100)
committerRuben Beltran del Rio <redacted>
Sun, 11 Dec 2022 12:16:34 +0000 (13:16 +0100)
index.js

index e1aaebf3a15759f32a5f7dec2d1b46ceb4c822ce..b6c3e10d10f0ca09be10d20f843b353215c9ef2c 100644 (file)
--- a/index.js
+++ b/index.js
@@ -28,7 +28,7 @@ const internals = {
 
 async function run() {
   const pinboard = new Pinboard(internals.apiToken);
-  const getPins = promisify(pinboard.get);
+  const getPins = promisify(pinboard.all);
   const addPin = promisify(pinboard.add);
 
   const pins = await getPins({ tag: 'linkblog' });