chore: Move currency, collection, and auth tests to http folder (#7581)
* chore: Move auth tests to http folder * chore: Migrate collection tests to http folder * chore: Move currency tests to http folder
This commit is contained in:
@@ -14,6 +14,6 @@ export const retrieveTransformQueryConfig = {
|
||||
|
||||
export const listTransformQueryConfig = {
|
||||
...retrieveTransformQueryConfig,
|
||||
defaultLimit: 50,
|
||||
defaultLimit: 200,
|
||||
isList: true,
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ export type AdminGetCurrenciesParamsType = z.infer<
|
||||
>
|
||||
export const AdminGetCurrenciesParams = createFindParams({
|
||||
offset: 0,
|
||||
limit: 50,
|
||||
limit: 200,
|
||||
}).merge(
|
||||
z.object({
|
||||
q: z.string().optional(),
|
||||
|
||||
@@ -59,6 +59,7 @@ export const GET = async (req: MedusaRequest, res: MedusaResponse) => {
|
||||
const entityIdKey = `${actor_type}_id`
|
||||
const entityId = authIdentity.app_metadata?.[entityIdKey]
|
||||
const { jwtSecret, jwtExpiresIn } = http
|
||||
|
||||
const token = generateJwtToken(
|
||||
{
|
||||
actor_id: entityId,
|
||||
|
||||
Reference in New Issue
Block a user