(modelName: string, id: string, body: any)
| 22 | } |
| 23 | |
| 24 | async insert(modelName: string, id: string, body: any) { |
| 25 | const index = this.toIndex(modelName); |
| 26 | const result = await this.client.index({ index, id: id.toString(), body }); |
| 27 | LogService.debug(`\t🔄 ES.insert(${index}) => ${id}`); |
| 28 | return result; |
| 29 | } |
| 30 | |
| 31 | async update(modelName: string, id: string, doc: any) { |
| 32 | const index = this.toIndex(modelName); |
no test coverage detected