Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+5
-5
@@ -1,18 +1,18 @@
|
||||
// @vitest-environment node
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
vi.mock("@toolctrl/queue", () => ({
|
||||
vi.mock("@hivegrid/queue", () => ({
|
||||
buildNotificationJob: vi.fn((payload) => ({ name: "notification", payload })),
|
||||
enqueueJob: vi.fn(),
|
||||
queueNames: { notifications: "notifications" },
|
||||
resolveRedisConnectionOptions: vi.fn(() => undefined),
|
||||
}));
|
||||
|
||||
vi.mock("@toolctrl/queue/runtime", () => ({
|
||||
vi.mock("@hivegrid/queue/runtime", () => ({
|
||||
createQueue: vi.fn(() => ({ close: vi.fn(async () => undefined) })),
|
||||
}));
|
||||
|
||||
vi.mock("@toolctrl/db/notifications.server", () => ({
|
||||
vi.mock("@hivegrid/db/notifications.server", () => ({
|
||||
createNotificationDelivery: vi.fn(async (input) => ({ id: "delivery_1", ...input })),
|
||||
redactNotificationDiagnosticText: vi.fn((value: string) => value),
|
||||
}));
|
||||
@@ -29,8 +29,8 @@ vi.mock("~/utils/db/users.db.server", () => ({
|
||||
getAdminUsersInRoles: vi.fn(async () => []),
|
||||
}));
|
||||
|
||||
import { createNotificationDelivery } from "@toolctrl/db/notifications.server";
|
||||
import { enqueueJob, resolveRedisConnectionOptions } from "@toolctrl/queue";
|
||||
import { createNotificationDelivery } from "@hivegrid/db/notifications.server";
|
||||
import { enqueueJob, resolveRedisConnectionOptions } from "@hivegrid/queue";
|
||||
import NotificationService, { mapNotificationChannelToCategory } from "./NotificationService";
|
||||
|
||||
const user = {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
import { buildNotificationJob, enqueueJob, queueNames, resolveRedisConnectionOptions, type RedisConnectionEnv, type TypedQueue } from "@toolctrl/queue";
|
||||
import { createNotificationDelivery, redactNotificationDiagnosticText } from "@toolctrl/db/notifications.server";
|
||||
import { buildNotificationJob, enqueueJob, queueNames, resolveRedisConnectionOptions, type RedisConnectionEnv, type TypedQueue } from "@hivegrid/queue";
|
||||
import { createNotificationDelivery, redactNotificationDiagnosticText } from "@hivegrid/db/notifications.server";
|
||||
import { getRolesByName } from "~/utils/db/permissions/roles.db.server";
|
||||
import { getUsersRolesInTenant } from "~/utils/db/permissions/userRoles.db.server";
|
||||
import { getAdminUsersInRoles } from "~/utils/db/users.db.server";
|
||||
@@ -17,8 +17,8 @@ async function withNotificationQueue<T>(env: RedisConnectionEnv | undefined, tas
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const queueRuntimeModule = "@toolctrl/queue/runtime";
|
||||
const { createQueue } = (await import(/* @vite-ignore */ queueRuntimeModule)) as typeof import("@toolctrl/queue/runtime");
|
||||
const queueRuntimeModule = "@hivegrid/queue/runtime";
|
||||
const { createQueue } = (await import(/* @vite-ignore */ queueRuntimeModule)) as typeof import("@hivegrid/queue/runtime");
|
||||
const queue = createQueue(queueNames.notifications, { connection });
|
||||
try {
|
||||
return await task(queue);
|
||||
|
||||
Reference in new issue
Block a user