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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user