Refactor billing system and enhance logging

Updated the billing system's schema to change 'storeId' to a string type, and improved the cleanliness and readability of the code. Enhanced the logging system within the billing service for better tracking and debugging. In line with these changes, added corresponding error pages in the client side to handle any errors.
This commit is contained in:
giancarlo
2024-04-02 12:19:09 +08:00
parent 6149f6a313
commit d24cf8427f
14 changed files with 458 additions and 81 deletions

View File

@@ -24,13 +24,13 @@ export async function createCmsClient(
}
async function getContentLayerClient() {
const { ContentlayerClient } = await import('@kit/contentlayer');
const { ContentlayerClient } = await import('../../contentlayer');
return new ContentlayerClient();
}
async function getWordpressClient() {
const { WordpressClient } = await import('@kit/wordpress');
const { WordpressClient } = await import('../../wordpress');
return new WordpressClient();
}