@amityco/ts-sdk 7.2.1-50ce75a.0 → 7.2.1-96eab49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -6227,7 +6227,7 @@ const pinnedPostLinkedObject = (pinnedPost) => {
6227
6227
 
6228
6228
  const notificationTrayLinkedObject = (noti) => {
6229
6229
  return Object.assign(Object.assign({}, noti), { isSeen: noti.lastSeenAt > noti.lastOccurredAt, isRecent: new Date(noti.lastOccurredAt).getTime() >= Date.now() - WEEK, users: noti.actors
6230
- .map(({ _id }) => pullFromCache(['user', 'get', _id]))
6230
+ .map(({ publicId }) => pullFromCache(['user', 'get', publicId]))
6231
6231
  .filter(isNonNullable)
6232
6232
  .map(({ data }) => data)
6233
6233
  .map(user => userLinkedObject(user)) });
package/dist/index.esm.js CHANGED
@@ -22319,7 +22319,7 @@ const pinnedPostLinkedObject = (pinnedPost) => {
22319
22319
 
22320
22320
  const notificationTrayLinkedObject = (noti) => {
22321
22321
  return Object.assign(Object.assign({}, noti), { isSeen: noti.lastSeenAt > noti.lastOccurredAt, isRecent: new Date(noti.lastOccurredAt).getTime() >= Date.now() - WEEK, users: noti.actors
22322
- .map(({ _id }) => pullFromCache(['user', 'get', _id]))
22322
+ .map(({ publicId }) => pullFromCache(['user', 'get', publicId]))
22323
22323
  .filter(isNonNullable)
22324
22324
  .map(({ data }) => data)
22325
22325
  .map(user => userLinkedObject(user)) });