File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -112,15 +112,15 @@ exports.groupItems = (items) => {
112112 * @param {Object } config - Application config
113113 */
114114exports . formatItems = ( items , config ) => {
115- // const time = new Date().toISOString()
115+ const time = new Date ( ) . toISOString ( ) ;
116116 for ( let i = 0 , j = items . length ; i < j ; i ++ ) {
117117 switch ( items [ i ] . type ) {
118118 case 'asset_published' :
119119 delete items [ i ] . type ;
120120 items [ i ] . _content_type_uid = formattedAssetType ;
121121 items [ i ] . _type = config . contentstack . actions . publish ;
122122 // extra keys
123- // items[i]._synced_at = time
123+ items [ i ] . _synced_at = time ;
124124 items [ i ] = lodash_1 . merge ( items [ i ] , items [ i ] . data ) ;
125125 items [ i ] . locale = items [ i ] . data . publish_details . locale ;
126126 break ;
@@ -141,7 +141,7 @@ exports.formatItems = (items, config) => {
141141 items [ i ] . _type = config . contentstack . actions . publish ;
142142 items [ i ] . _content_type_uid = items [ i ] . content_type_uid ;
143143 // extra keys
144- // items[i]._synced_at = time
144+ items [ i ] . _synced_at = time ;
145145 items [ i ] = lodash_1 . merge ( items [ i ] , items [ i ] . data ) ;
146146 items [ i ] . locale = items [ i ] . data . publish_details . locale ;
147147 break ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @contentstack/datasync-manager" ,
33 "author" : " Contentstack LLC <support@contentstack.com>" ,
4- "version" : " 1.1 .0" ,
4+ "version" : " 1.2 .0" ,
55 "description" : " The primary module of Contentstack DataSync. Syncs Contentstack data with your server using Contentstack Sync API" ,
66 "main" : " dist/index.js" ,
77 "dependencies" : {
You can’t perform that action at this time.
0 commit comments