(model: string, data: any)
| 1982 | } |
| 1983 | |
| 1984 | private getId(model: string, data: any) { |
| 1985 | if (!data) { |
| 1986 | return undefined; |
| 1987 | } |
| 1988 | const ids = this.getIdFields(model); |
| 1989 | if (ids.length === 0) { |
| 1990 | return undefined; |
| 1991 | } else { |
| 1992 | return data[this.makeIdKey(ids)]; |
| 1993 | } |
| 1994 | } |
| 1995 | |
| 1996 | private async serializeItems(model: string, items: unknown, options?: Partial<SerializerOptions<any>>) { |
| 1997 | model = lowerCaseFirst(model); |
no test coverage detected