mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-27 15:30:24 +01:00
returned OnAfterBootstrap error and added more jsvm tests
This commit is contained in:
1 parent
d0a68da7e7
commit
6fe04bd280
6 files changed
+26837
-3165
No files matched your search
@@ -15,6 +15,54 @@ import (
|
||||
)
|
||||
|
||||
const heading = `
|
||||
// -------------------------------------------------------------------
|
||||
// cronBinds
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* CronAdd registers a new cron job.
|
||||
*
|
||||
* If a cron job with the specified name already exist, it will be
|
||||
* replaced with the new one.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* ` + "```" + `js
|
||||
* // prints "Hello world!" on every 30 minutes
|
||||
* cronAdd("hello", "*/30 * * * *", (c) => {
|
||||
* console.log("Hello world!")
|
||||
* })
|
||||
* ` + "```" + `
|
||||
*
|
||||
* _Note that this method is available only in pb_hooks context._
|
||||
*
|
||||
* @group PocketBase
|
||||
*/
|
||||
declare function cronAdd(
|
||||
jobId: string,
|
||||
cronExpr: string,
|
||||
handler: () => void,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* CronRemove removes previously registerd cron job by its name.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* ` + "```" + `js
|
||||
* cronRemove("hello")
|
||||
* ` + "```" + `
|
||||
*
|
||||
* _Note that this method is available only in pb_hooks context._
|
||||
*
|
||||
* @group PocketBase
|
||||
*/
|
||||
declare function cronAdd(
|
||||
jobId: string,
|
||||
cronExpr: string,
|
||||
handler: () => void,
|
||||
): void;
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
// routerBinds
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
+3210
-3160
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user