( _event: ScheduledEvent, env: Env, ctx: ExecutionContext, )
| 24 | |
| 25 | // This is a daily scheduled event to update the metadata. |
| 26 | async scheduled( |
| 27 | _event: ScheduledEvent, |
| 28 | env: Env, |
| 29 | ctx: ExecutionContext, |
| 30 | ): Promise<void> { |
| 31 | // Update fontlist and aggregate metadata object. |
| 32 | await updateMetadata(env, ctx); |
| 33 | for (const type of fontlistQueries) { |
| 34 | await updateList(type, env, ctx); |
| 35 | } |
| 36 | |
| 37 | // Update the metadata arr. We'll let the rest of the individual font ids expire |
| 38 | // and update on their own. |
| 39 | await updateArrayMetadata(env, ctx); |
| 40 | |
| 41 | // Update variable lists. |
| 42 | await updateAxisRegistry(env, ctx); |
| 43 | await updateVariableList(env, ctx); |
| 44 | |
| 45 | // Update stats. |
| 46 | await updatePackageStatAll(env, ctx); |
| 47 | // TODO: Versions |
| 48 | }, |
| 49 | }; |
nothing calls this directly
no test coverage detected