Browse Source

fix: Add missing return

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/431/head
Pranav C 3 years ago
parent
commit
74b03277b7
  1. 2
      packages/nocodb/src/lib/noco/gql/GqlApiBuilder.ts
  2. 2
      packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts

2
packages/nocodb/src/lib/noco/gql/GqlApiBuilder.ts

@ -89,7 +89,7 @@ export class GqlApiBuilder extends BaseApiBuilder<Noco> implements XcMetaMgr {
public async init(): Promise<void> { public async init(): Promise<void> {
await super.init(); await super.init();
await this.loadResolvers(null); return await this.loadResolvers(null);
} }
public async onToggleModelRelation(relationInModels: any): Promise<void> { public async onToggleModelRelation(relationInModels: any): Promise<void> {

2
packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts

@ -52,7 +52,7 @@ export class RestApiBuilder extends BaseApiBuilder<Noco> {
public async init(): Promise<void> { public async init(): Promise<void> {
await super.init(); await super.init();
await this.loadRoutes(null); return await this.loadRoutes(null);
} }
public async loadRoutes(customRoutes: any): Promise<any> { public async loadRoutes(customRoutes: any): Promise<any> {

Loading…
Cancel
Save