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 { 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) {
|
||||
|
||||
@ -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);
|
||||
|
||||
BIN
tb-api.paw
BIN
tb-api.paw
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user