feat: version number in collection schema

This commit is contained in:
Anoop M D
2022-10-16 23:36:10 +05:30
parent 7078d5cec2
commit fe900b90c9
4 changed files with 10 additions and 46 deletions

View File

@@ -237,6 +237,9 @@ export const transformCollectionToSaveToIdb = (collection, options = {}) => {
const collectionToSave = {};
collectionToSave.name = collection.name;
collectionToSave.uid = collection.uid;
// todo: move this to the place where collection gets created
collectionToSave.version = '1';
collectionToSave.items = [];
collectionToSave.activeEnvironmentUid = collection.activeEnvironmentUid;
collectionToSave.environments = collection.environments || [];