MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getEntryBackupKey

Function getEntryBackupKey

packages/decap-cms-core/src/backend.ts:129–136  ·  view source on GitHub ↗
(collectionName?: string, slug?: string)

Source from the content-addressed store, hash-verified

127}
128
129function 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
138function getEntryField(field: string, entry: EntryValue) {
139 const value = get(entry.data, field);

Callers 4

getLocalDraftBackupMethod · 0.85
deleteAnonymousBackupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected