Theodo-UK / nestjs-admin

A generic administration interface for TypeORM entities

Home Page:https://nestjs-admin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New entities do not appear in admin panel

SergeyMell opened this issue · comments

I've set up the admin panel for my NestJS project. Managed to created an admin user.
However, when I try to register a new entity for the admin panel, i.e.

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Coin } from './coin.entity';
import { DefaultAdminModule, DefaultAdminSite } from 'nestjs-admin'

@Module({
  imports: [
    TypeOrmModule.forFeature([Coin]),
    DefaultAdminModule,
  ],
  exports: [TypeOrmModule],
})
export class CoinModule {

  constructor(private readonly adminSite: DefaultAdminSite) {
    adminSite.register('Coin', Coin)
  }

}

It does not appear in the admin panel. Tried to implement with both @nestjs/core": "^6.0.0" and @nestjs/core": "^7.0.0" - no luck