(collectionName?: string, slug?: string)
| 127 | } |
| 128 | |
| 129 | function getEntryBackupKey(collectionName?: string, slug?: string) { |
| 130 | const baseKey = 'backup'; |
| 131 | if (!collectionName) { |
| 132 | return baseKey; |
| 133 | } |
| 134 | const suffix = slug ? `.${slug}` : ''; |
| 135 | return `${baseKey}.${collectionName}${suffix}`; |
| 136 | } |
| 137 | |
| 138 | function getEntryField(field: string, entry: EntryValue) { |
| 139 | const value = get(entry.data, field); |
no outgoing calls
no test coverage detected