(dataFile: UnpublishedEntryDiff)
| 1272 | }; |
| 1273 | |
| 1274 | const readAndFormatDataFile = async (dataFile: UnpublishedEntryDiff) => { |
| 1275 | const data = await this.implementation.unpublishedEntryDataFile( |
| 1276 | collection.get('name'), |
| 1277 | entryData.slug, |
| 1278 | dataFile.path, |
| 1279 | dataFile.id, |
| 1280 | ); |
| 1281 | const entryWithFormat = formatData(data, dataFile.path, dataFile.newFile); |
| 1282 | return entryWithFormat; |
| 1283 | }; |
| 1284 | |
| 1285 | // if the unpublished entry has no diffs, return the original |
| 1286 | if (dataFiles.length <= 0) { |
nothing calls this directly
no test coverage detected