load resources from starter kit and introduce srcDir configuration
This commit is contained in:
@@ -11,7 +11,6 @@ import { toCamelCase, upperCaseFirst } from "@medusajs/utils"
|
||||
export function formatRegistrationName(path: string): string {
|
||||
const parsed = parse(path)
|
||||
const parsedDir = parse(parsed.dir)
|
||||
const rawname = parsed.name
|
||||
let directoryNamespace = parsedDir.name
|
||||
|
||||
if (directoryNamespace.startsWith("__")) {
|
||||
|
||||
@@ -90,7 +90,6 @@ export function prepareListQuery<T extends RequestQueryFields, TEntity>(
|
||||
}
|
||||
})
|
||||
|
||||
const allAllowedFields = new Set(allowedFields) // In case there is no allowedFields, allow all fields
|
||||
const notAllowedFields: string[] = []
|
||||
|
||||
if (allowedFields.length) {
|
||||
|
||||
Reference in New Issue
Block a user