(templateId: TemplateId)
| 161 | }) |
| 162 | }, |
| 163 | async getTemplate(templateId: TemplateId) { |
| 164 | const templateDbId = toLDbId(templateId) |
| 165 | const template = await ky |
| 166 | .selectFrom('template') |
| 167 | .leftJoin('remoteTemplate', 'template.id', 'remoteTemplate.localId') |
| 168 | .selectAll() |
| 169 | .where('id', '=', templateDbId) |
| 170 | .execute() |
| 171 | return undefinedMap(template, toTemplate) ?? null |
| 172 | }, |
| 173 | async getTemplateIdByRemoteId(templateId: RemoteTemplateId) { |
| 174 | const template = await ky |
| 175 | .selectFrom('template') |
nothing calls this directly
no test coverage detected