mirror of
https://github.com/vercel/commerce.git
synced 2025-09-07 08:20:18 +00:00
12
components/filters/actions.ts
Normal file
12
components/filters/actions.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
'use server';
|
||||
|
||||
import { getAllMetaobjects } from 'lib/shopify';
|
||||
|
||||
export const fetMetaobjects = async (type: string) => {
|
||||
try {
|
||||
const data = await getAllMetaobjects(type);
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.log('fetMetaobjects action', error);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user