Setup delegation credential related crons (#21176)

Co-authored-by: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com>
This commit is contained in:
Hariom Balhara
2025-05-09 07:59:31 +00:00
committed by GitHub
co-authored by Tushar Bhatt
parent 0b3f9d06a9
commit cecfcc7c6f
3 changed files with 18 additions and 0 deletions
@@ -1,3 +1,8 @@
/**
* @description This route is used to create and delete Credential records for all members of an organization that has delegation credentials enabled.
*
* It also deletes Credential records for all members of an organization that has delegation credentials disabled.
*/
import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
@@ -1,3 +1,8 @@
/**
* @description This route is used to create SelectedCalendar records based on Credential records corresponding to Delegation Credentials
*
* It works in conjunction with `/api/cron/credentials` route(which creates the Credential records for all the members of an organization that has delegation credentials enabled)
*/
import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
+8
View File
@@ -15,6 +15,14 @@
{
"path": "/api/tasks/cleanup",
"schedule": "0 0 * * *"
},
{
"path": "/api/cron/credentials",
"schedule": "*/5 * * * *"
},
{
"path": "/api/cron/selected-calendars",
"schedule": "*/5 * * * *"
}
],
"functions": {