(modelName: string, id: string, doc: any)
| 29 | } |
| 30 | |
| 31 | async update(modelName: string, id: string, doc: any) { |
| 32 | const index = this.toIndex(modelName); |
| 33 | const result = await this.client.update({ index, id: id.toString(), doc }); |
| 34 | LogService.debug(`\t🔄 ES.update(${index}) => ${id}`); |
| 35 | return result; |
| 36 | } |
| 37 | |
| 38 | async delete(modelName: string, id: string) { |
| 39 | const index = this.toIndex(modelName); |
no test coverage detected