Fix imports.

This commit is contained in:
Tom Butcher 2025-12-07 12:41:14 +00:00
parent db60e43d73
commit a5b1246fbd
3 changed files with 18 additions and 4 deletions

View File

@ -11,6 +11,7 @@ import { importNotionCvs } from "../objects/cv.js";
import { importFiles } from "../objects/files.js";
import { importNotionProjects } from "../objects/projects.js";
import { importVideos } from "../objects/videos.js";
import { handleBlurhashUpdate } from "../utils/imageCache";
// Fetch or return cached content
export async function getCachedContent(env, request) {
@ -43,6 +44,7 @@ export async function getCachedContent(env, request) {
cachedContent.images = await importImages(env);
cachedContent.files = await importFiles(env);
cachedContent.videos = await importVideos(env);
await handleBlurhashUpdate(request, env);
}
if (noPages) {
@ -50,6 +52,7 @@ export async function getCachedContent(env, request) {
cachedContent.images = await importImages(env);
cachedContent.files = await importFiles(env);
cachedContent.videos = await importVideos(env);
await handleBlurhashUpdate(request, env);
}
if (noCvs) {
@ -63,6 +66,7 @@ export async function getCachedContent(env, request) {
cachedContent.images = await importImages(env);
cachedContent.files = await importFiles(env);
cachedContent.videos = await importVideos(env);
await handleBlurhashUpdate(request, env);
}
if (noProjects) {

View File

@ -6,10 +6,20 @@ import { globalHeaders } from "../utils/api";
import { importImages } from "../objects/images";
import { importFiles } from "../objects/files";
import { importVideos } from "../objects/videos";
import { importNotionProjects } from "../objects/projects";
import { importNotionCompanies } from "../objects/companies";
import { importNotionPositions } from "../objects/positions";
import { importNotionCvs } from "../objects/cv";
import { handleBlurhashUpdate } from "../utils/imageCache";
import {
importNotionProjects,
deleteNotionProjectFromCache,
} from "../objects/projects";
import {
importNotionCompanies,
deleteNotionCompanyFromCache,
} from "../objects/companies";
import {
importNotionPositions,
deleteNotionPositionFromCache,
} from "../objects/positions";
import { importNotionCvs, deleteNotionCvFromCache } from "../objects/cv";
async function updateAllNotionData(env) {
await importNotionNavigation(env);

Binary file not shown.