update grist every night

This commit is contained in:
Darius
2026-02-10 01:03:03 +01:00
parent c98304fe8e
commit 772a54aca8
2 changed files with 73 additions and 25 deletions

View File

@@ -3,17 +3,17 @@ import { logError } from "@dpu/shared/dist/logger.js";
import fastifyCors, { type FastifyCorsOptions } from "@fastify/cors";
import fastifySwagger, { type SwaggerOptions } from "@fastify/swagger";
import fastifySwaggerUi, {
type FastifySwaggerUiOptions,
type FastifySwaggerUiOptions,
} from "@fastify/swagger-ui";
import fastifyWebsocket from "@fastify/websocket";
import type { FastifyReply, FastifyRequest } from "fastify";
import Fastify from "fastify";
import fastifyAxios, { type FastifyAxiosOptions } from "fastify-axios";
import {
jsonSchemaTransform,
serializerCompiler,
validatorCompiler,
type ZodTypeProvider,
jsonSchemaTransform,
serializerCompiler,
validatorCompiler,
type ZodTypeProvider,
} from "fastify-type-provider-zod";
import type { OpenAPIV3 } from "openapi-types";
import { SwaggerTheme, SwaggerThemeNameEnum } from "swagger-themes";
@@ -154,6 +154,8 @@ const hpService = new HomepageService(
wsService,
);
hpService.scheduleMidnightGristUpdate();
async function verifyAPIKey(
request: FastifyRequest,
reply: FastifyReply,