|
@@ -29,7 +29,7 @@ module.exports = app => {
|
|
|
const result = await this.db.insert(this.tableName, data);
|
|
|
return await this.getDataById(result.insertId);
|
|
|
}
|
|
|
- await this.db.update(this.tableName, { id: data.id });
|
|
|
+ await this.db.update(this.tableName, data);
|
|
|
return await this.getDataById(data.id);
|
|
|
}
|
|
|
}
|