Skip to content

Commit

Permalink
chore: rename to MetabaseCollectionsController for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Dec 11, 2024
1 parent 7203db0 commit 5248d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createCollectionIfDoesNotExist } from "./service.js";
import type { NewCollectionRequestHandler } from "./types.js";

export const createCollectionIfDoesNotExistController: NewCollectionRequestHandler =
export const MetabaseCollectionsController: NewCollectionRequestHandler =
async (_req, res) => {
try {
const params = res.locals.parsedReq.body;
Expand Down
4 changes: 2 additions & 2 deletions api.planx.uk/modules/analytics/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
logUserExitController,
logUserResumeController,
} from "./analyticsLog/controller.js";
import { createCollectionIfDoesNotExistController } from "./metabase/collection/controller.js";
import { MetabaseCollectionsController } from "./metabase/collection/controller.js";
import { createCollectionIfDoesNotExistSchema } from "./metabase/collection/types.js";

const router = Router();
Expand All @@ -23,7 +23,7 @@ router.post(
router.post(
"/collection",
validate(createCollectionIfDoesNotExistSchema),
createCollectionIfDoesNotExistController,
MetabaseCollectionsController,
);

export default router;

0 comments on commit 5248d51

Please sign in to comment.