Skip to content

Commit

Permalink
Temporarily remove meilisearch until service has been set-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Macludde committed Dec 9, 2024
1 parent d80cb3a commit eee8887
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import loggingExtension from "./database/prisma/loggingExtension";
import translatedExtension from "./database/prisma/translationExtension";
import { getAccessPolicies } from "./hooks.server.helpers";
import { getDerivedRoles } from "$lib/utils/authorization";
import meilisearchSync from "$lib/search/sync";
// import meilisearchSync from "$lib/search/sync";

const { handle: authHandle } = SvelteKitAuth({
secret: env.AUTH_SECRET,
Expand Down Expand Up @@ -212,7 +212,7 @@ const themeHandle: Handle = async ({ event, resolve }) => {

// run a keycloak sync every day at midnight
schedule.scheduleJob("0 0 * * *", () => keycloak.sync(authorizedPrismaClient));
schedule.scheduleJob("0 0 * * *", meilisearchSync);
// schedule.scheduleJob("0 0 * * *", meilisearchSync);

export const handle = sequence(
authHandle,
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(app)/admin/debug/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { env } from "$env/dynamic/private";
import keycloak from "$lib/server/keycloak";
import meilisearchSync from "$lib/search/sync";
// import meilisearchSync from "$lib/search/sync";
import authorizedPrismaClient from "$lib/server/shop/authorizedPrisma";
import { isNollningPeriod } from "$lib/utils/adminSettings/nollning";

Expand All @@ -15,5 +15,5 @@ export const actions = {
keycloakSync: async () => {
keycloak.sync(authorizedPrismaClient);
},
meilisearchSync,
// meilisearchSync,
};

0 comments on commit eee8887

Please sign in to comment.