@walruswebdev/daily-devhabit-cli 1.1.4 → 1.1.5
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/dist/index.js +0 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -128,17 +128,6 @@ program
|
|
|
128
128
|
});
|
|
129
129
|
console.log(`\n✅ Log Saved! (ID: ${response.data.id})`);
|
|
130
130
|
console.log(` Stored in: Cloud Database`);
|
|
131
|
-
const syncUrl = config.get('sync.url') || process.env.DDH_SYNC_URL;
|
|
132
|
-
if (syncUrl && typeof syncUrl === 'string') {
|
|
133
|
-
try {
|
|
134
|
-
// Adding {} as the second argument (the body) and the URL as the first
|
|
135
|
-
await axios_1.default.post('https://ddh-notion-bridge-production.up.railway.app/webhook/sync', {}, { timeout: 3000 });
|
|
136
|
-
console.log('✨ Notion tables synced via bridge.');
|
|
137
|
-
}
|
|
138
|
-
catch (e) {
|
|
139
|
-
// Quietly fail
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
131
|
}
|
|
143
132
|
catch (error) {
|
|
144
133
|
// OFFLINE FALLBACK
|