Closed dhemas closed 4 years ago
NVM, I just realized that sequelize model should have an auto increment primary key
please paste content from options:
resources: [{
resource: db.user_status,
options: {
//... PASTE WHAT IS HERE
}
}],
most probably you define some after hooks which returns objects without { record } property
@wojtek-krysiak I am facing this issue const adminBro = new AdminBro({ rootPath: '/admin', resources: [{ resource: DstvPackages, options: {}}], branding: { companyName: 'abc', }, })
node v10.19.0
also it works fine with sample data. but when i connect it data previously used by application I am facing this
maybe because the previous records didn't have this primary Id column?
Describe the bug AdminBro gives me error about unspecified recordId as shown below
Installed libraries and their versions
To Reproduce Steps to reproduce the behavior:
sequelize-cli init
sequelize-auto
AdminBroOptions with schema
Desktop (please complete the following information if relevant):