generated from tailored/router-db-template
perf
This commit is contained in:
@@ -3,7 +3,7 @@ import { Sequelize } from 'sequelize';
|
||||
// import { createSequelize } from '@kevisual/xhs/services/xhs-db/db.ts';
|
||||
import path from 'node:path';
|
||||
import fs from 'node:fs';
|
||||
|
||||
export { XhsClient };
|
||||
type XhsClientOptions = {
|
||||
key: string;
|
||||
cookie: string;
|
||||
@@ -69,7 +69,7 @@ export class XhsServices {
|
||||
|
||||
createRoot(options: Partial<XhsClientOptions>) {
|
||||
options.key = options.key || this.root;
|
||||
return this.createClient(options as XhsClientOptions);
|
||||
return this.createClient(options as XhsClientOptions) as XhsClient;
|
||||
}
|
||||
getKey(key?: string) {
|
||||
if (!key) key = this.root;
|
||||
|
||||
Reference in New Issue
Block a user