From 86cf26355e47b85af9b7edc80da413501997d6e4 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Wed, 12 Jun 2019 13:31:58 +0800 Subject: [PATCH] fix: db init error --- packages/cc-server-core/src/function/handle.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cc-server-core/src/function/handle.ts b/packages/cc-server-core/src/function/handle.ts index 461b3cd..acbd4c8 100644 --- a/packages/cc-server-core/src/function/handle.ts +++ b/packages/cc-server-core/src/function/handle.ts @@ -27,9 +27,7 @@ export class Controller { @postConstruct() private init(): void { - setTimeout(() => { - this.client.setTable(TABLE); - }, 50) + this.client.setTable(TABLE); } @httpGet('/')