Skip to content

Commit 6b8ce9e

Browse files
committed
fix: call export use case from action
1 parent 309bfc7 commit 6b8ce9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/export/actions/requestInterlinearExport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { verifySession } from "@/session";
77
import { Policy } from "@/modules/access";
88
import { FormState } from "@/components/Form";
99
import { serverActionLogger } from "@/server-action";
10-
import { requestInterlinearExport } from "../use-cases/RequestInterlinearExport";
10+
import { requestInterlinearExport as requestInterlinearExportUseCase } from "../use-cases/RequestInterlinearExport";
1111

1212
const exportPolicy = new Policy({
1313
systemRoles: [Policy.SystemRole.Admin],
@@ -65,7 +65,7 @@ export async function requestInterlinearExport(
6565
}
6666

6767
try {
68-
await requestInterlinearExport({
68+
await requestInterlinearExportUseCase({
6969
languageCode: parsed.data.languageCode,
7070
requestedBy: userId,
7171
});

0 commit comments

Comments
 (0)