fix(core): update

This commit is contained in:
2020-02-19 18:30:34 +00:00
parent 8e7ad5210f
commit e58fa57525
5 changed files with 30 additions and 41 deletions

View File

@ -44,7 +44,7 @@ tap.test('should establish a connection to the rethink Db cluster', async () =>
@smartdata.Collection(() => {
return testDb;
})
class Car extends smartdata.SmartDataDbDoc<Car> {
class Car extends smartdata.SmartDataDbDoc<Car, Car> {
@smartdata.unI()
public index: string = smartunique.shortId();
@ -107,7 +107,7 @@ tap.test('should be able to delete an instance of car', async () => {
@smartdata.Collection(() => {
return testDb;
})
class Truck extends smartdata.SmartDataDbDoc<Car> {
class Truck extends smartdata.SmartDataDbDoc<Car, Car> {
@smartdata.unI()
public id: string = smartunique.shortId();