lystbot 0.3.1 ā 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/index.js +3 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -409,8 +409,8 @@ program
|
|
|
409
409
|
|
|
410
410
|
const result = await api.request('POST', `/lists/${list.id}/share`);
|
|
411
411
|
console.log(`\nš Share code for ${list.emoji || 'š'} ${list.title || list.name}:\n`);
|
|
412
|
-
console.log(` ${result.
|
|
413
|
-
console.log(` Others can join with: lystbot join ${result.
|
|
412
|
+
console.log(` ${result.share_code}\n`);
|
|
413
|
+
console.log(` Others can join with: lystbot join ${result.share_code}`);
|
|
414
414
|
});
|
|
415
415
|
|
|
416
416
|
// āā join āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
@@ -419,7 +419,7 @@ program
|
|
|
419
419
|
.description('Join a shared list using a share code')
|
|
420
420
|
.action(async (code) => {
|
|
421
421
|
config.getApiKey();
|
|
422
|
-
const list = await api.request('POST', '/lists/join', {
|
|
422
|
+
const list = await api.request('POST', '/lists/join', { code });
|
|
423
423
|
console.log(`š¤ Joined: ${list.emoji || 'š'} ${list.title || list.name} (${list.item_count || 0} items)`);
|
|
424
424
|
});
|
|
425
425
|
|