Fix imports.
This commit is contained in:
parent
db60e43d73
commit
a5b1246fbd
@ -11,6 +11,7 @@ import { importNotionCvs } from "../objects/cv.js";
|
|||||||
import { importFiles } from "../objects/files.js";
|
import { importFiles } from "../objects/files.js";
|
||||||
import { importNotionProjects } from "../objects/projects.js";
|
import { importNotionProjects } from "../objects/projects.js";
|
||||||
import { importVideos } from "../objects/videos.js";
|
import { importVideos } from "../objects/videos.js";
|
||||||
|
import { handleBlurhashUpdate } from "../utils/imageCache";
|
||||||
|
|
||||||
// Fetch or return cached content
|
// Fetch or return cached content
|
||||||
export async function getCachedContent(env, request) {
|
export async function getCachedContent(env, request) {
|
||||||
@ -43,6 +44,7 @@ export async function getCachedContent(env, request) {
|
|||||||
cachedContent.images = await importImages(env);
|
cachedContent.images = await importImages(env);
|
||||||
cachedContent.files = await importFiles(env);
|
cachedContent.files = await importFiles(env);
|
||||||
cachedContent.videos = await importVideos(env);
|
cachedContent.videos = await importVideos(env);
|
||||||
|
await handleBlurhashUpdate(request, env);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noPages) {
|
if (noPages) {
|
||||||
@ -50,6 +52,7 @@ export async function getCachedContent(env, request) {
|
|||||||
cachedContent.images = await importImages(env);
|
cachedContent.images = await importImages(env);
|
||||||
cachedContent.files = await importFiles(env);
|
cachedContent.files = await importFiles(env);
|
||||||
cachedContent.videos = await importVideos(env);
|
cachedContent.videos = await importVideos(env);
|
||||||
|
await handleBlurhashUpdate(request, env);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noCvs) {
|
if (noCvs) {
|
||||||
@ -63,6 +66,7 @@ export async function getCachedContent(env, request) {
|
|||||||
cachedContent.images = await importImages(env);
|
cachedContent.images = await importImages(env);
|
||||||
cachedContent.files = await importFiles(env);
|
cachedContent.files = await importFiles(env);
|
||||||
cachedContent.videos = await importVideos(env);
|
cachedContent.videos = await importVideos(env);
|
||||||
|
await handleBlurhashUpdate(request, env);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noProjects) {
|
if (noProjects) {
|
||||||
|
|||||||
@ -6,10 +6,20 @@ import { globalHeaders } from "../utils/api";
|
|||||||
import { importImages } from "../objects/images";
|
import { importImages } from "../objects/images";
|
||||||
import { importFiles } from "../objects/files";
|
import { importFiles } from "../objects/files";
|
||||||
import { importVideos } from "../objects/videos";
|
import { importVideos } from "../objects/videos";
|
||||||
import { importNotionProjects } from "../objects/projects";
|
import { handleBlurhashUpdate } from "../utils/imageCache";
|
||||||
import { importNotionCompanies } from "../objects/companies";
|
import {
|
||||||
import { importNotionPositions } from "../objects/positions";
|
importNotionProjects,
|
||||||
import { importNotionCvs } from "../objects/cv";
|
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) {
|
async function updateAllNotionData(env) {
|
||||||
await importNotionNavigation(env);
|
await importNotionNavigation(env);
|
||||||
|
|||||||
BIN
tb-api.paw
BIN
tb-api.paw
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user