Compare commits
2 Commits
26294bfefd
...
daf1809165
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
daf1809165 | ||
|
|
65f4c77b49 |
@@ -592,7 +592,7 @@ export interface DailyNotificationPlugin {
|
|||||||
* enabled: true
|
* enabled: true
|
||||||
* });
|
* });
|
||||||
* result.schedules.forEach(schedule => {
|
* result.schedules.forEach(schedule => {
|
||||||
* console.log(`${schedule.id}: ${schedule.isActuallyScheduled ? 'Scheduled' : 'Not scheduled'}`);
|
* console.log(schedule.id + ': ' + (schedule.isActuallyScheduled ? 'Scheduled' : 'Not scheduled'));
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@@ -636,7 +636,7 @@ export interface DailyNotificationPlugin {
|
|||||||
* const schedule = await DailyNotification.createSchedule({
|
* const schedule = await DailyNotification.createSchedule({
|
||||||
* id: 'daily-fetch',
|
* id: 'daily-fetch',
|
||||||
* kind: 'fetch',
|
* kind: 'fetch',
|
||||||
* cron: '0 */6 * * *',
|
* cron: '0 0 */6 * *',
|
||||||
* enabled: true
|
* enabled: true
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
@@ -739,16 +739,6 @@ export interface DailyNotificationPlugin {
|
|||||||
*
|
*
|
||||||
* @param content Content cache data
|
* @param content Content cache data
|
||||||
* @returns Promise resolving to saved ContentCache object
|
* @returns Promise resolving to saved ContentCache object
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* ```typescript
|
|
||||||
* await DailyNotification.saveContentCache({
|
|
||||||
* id: 'cache_123',
|
|
||||||
* payload: JSON.stringify({ title: 'Hello', body: 'World' }),
|
|
||||||
* ttlSeconds: 3600,
|
|
||||||
* meta: 'fetched_from_api'
|
|
||||||
* });
|
|
||||||
* ```
|
|
||||||
*/
|
*/
|
||||||
saveContentCache(content: CreateContentCacheInput): Promise<ContentCache>;
|
saveContentCache(content: CreateContentCacheInput): Promise<ContentCache>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user