@timardex/cluemart-server-shared 1.0.211 → 1.0.212

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.mjs CHANGED
@@ -5145,7 +5145,7 @@ var EVENT = gql`
5145
5145
  ${RELATION_DATES_FRAGMENT}
5146
5146
  `;
5147
5147
  var GET_EVENTS = gql`
5148
- query getEvents($dateStatus: EnumEventDateStatus) {
5148
+ query getEvents($dateStatus: EventDateStatusEnumType) {
5149
5149
  events(dateStatus: $dateStatus) {
5150
5150
  ...EventListItemFields
5151
5151
  }
@@ -5172,7 +5172,7 @@ var GET_EVENTS_BY_REGION = gql`
5172
5172
  query getEventsByRegion(
5173
5173
  $region: String!
5174
5174
  $options: ResourcesByRegionOptions
5175
- $dateStatus: EnumEventDateStatus
5175
+ $dateStatus: EventDateStatusEnumType
5176
5176
  ) {
5177
5177
  eventsByRegion(
5178
5178
  region: $region
@@ -5189,7 +5189,7 @@ var SEARCH_EVENTS = gql`
5189
5189
  $region: String
5190
5190
  $search: String
5191
5191
  $tags: [String]
5192
- $dateStatus: EnumEventDateStatus
5192
+ $dateStatus: EventDateStatusEnumType
5193
5193
  ) {
5194
5194
  eventsSearch(
5195
5195
  region: $region
@@ -5207,7 +5207,7 @@ var GET_EVENTS_NEAR_ME = gql`
5207
5207
  $latitude: Float!
5208
5208
  $longitude: Float!
5209
5209
  $radius: Int
5210
- $dateStatus: EnumEventDateStatus
5210
+ $dateStatus: EventDateStatusEnumType
5211
5211
  ) {
5212
5212
  eventsNearMe(
5213
5213
  latitude: $latitude
@@ -9104,6 +9104,9 @@ function convertObjectIdsToStrings(obj) {
9104
9104
  if (obj instanceof mongoose27.Types.ObjectId) {
9105
9105
  return obj.toString();
9106
9106
  }
9107
+ if (obj instanceof Date) {
9108
+ return obj;
9109
+ }
9107
9110
  if (Array.isArray(obj)) {
9108
9111
  return obj.map(convertObjectIdsToStrings);
9109
9112
  }