load resources from starter kit and introduce srcDir configuration

This commit is contained in:
Harminder Virk
2024-05-21 15:02:53 +05:30
committed by GitHub
parent 73c917fdce
commit 3dbb256ddf
35 changed files with 177 additions and 123 deletions

View File

@@ -7,10 +7,6 @@ import {
MedusaResponse,
} from "../../../../types/routing"
import {
ContainerRegistrationKeys,
remoteQueryObjectFromString,
} from "@medusajs/utils"
import { refetchApiKey } from "../helpers"
import { AdminUpdateApiKeyType } from "../validators"
@@ -31,7 +27,7 @@ export const POST = async (
req: AuthenticatedMedusaRequest<AdminUpdateApiKeyType>,
res: MedusaResponse
) => {
const { result, errors } = await updateApiKeysWorkflow(req.scope).run({
const { errors } = await updateApiKeysWorkflow(req.scope).run({
input: {
selector: { id: req.params.id },
update: req.validatedBody,