fix: improve MMY filters

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-07-05 10:59:50 +07:00
parent 4cbc6962b9
commit a077bbe753
8 changed files with 117 additions and 28 deletions

View 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);
}
};