bruce-models 0.1.8 → 0.1.9

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.
@@ -4247,8 +4247,8 @@ var ProjectViewBookmark;
4247
4247
  return "" + Api.ECacheKey.ProjectViewBookmark + Api.ECacheKey.Id + viewId + Api.ECacheKey.Id + bookmarkId;
4248
4248
  }
4249
4249
  ProjectViewBookmark.GetCacheKey = GetCacheKey;
4250
- function GetListCacheKey() {
4251
- return Api.ECacheKey.ProjectViewBookmark;
4250
+ function GetListCacheKey(viewId) {
4251
+ return "" + Api.ECacheKey.ProjectViewBookmark + Api.ECacheKey.Id + viewId;
4252
4252
  }
4253
4253
  ProjectViewBookmark.GetListCacheKey = GetListCacheKey;
4254
4254
  function Get(api, viewId, bookmarkId) {
@@ -4282,7 +4282,7 @@ var ProjectViewBookmark;
4282
4282
  case 1:
4283
4283
  _a.sent();
4284
4284
  api.Cache.Remove(GetCacheKey(viewId, bookmarkId));
4285
- api.Cache.Remove(GetListCacheKey());
4285
+ api.Cache.Remove(GetListCacheKey(viewId));
4286
4286
  return [2 /*return*/];
4287
4287
  }
4288
4288
  });
@@ -4297,7 +4297,7 @@ var ProjectViewBookmark;
4297
4297
  if (!viewId) {
4298
4298
  throw ("View ID is required.");
4299
4299
  }
4300
- cacheData = api.Cache.Get(GetListCacheKey());
4300
+ cacheData = api.Cache.Get(GetListCacheKey(viewId));
4301
4301
  if (cacheData) {
4302
4302
  return [2 /*return*/, cacheData];
4303
4303
  }
@@ -4320,7 +4320,7 @@ var ProjectViewBookmark;
4320
4320
  }
4321
4321
  });
4322
4322
  }); });
4323
- api.Cache.Set(GetListCacheKey(), req, Api.DEFAULT_CACHE_DURATION);
4323
+ api.Cache.Set(GetListCacheKey(viewId), req, Api.DEFAULT_CACHE_DURATION);
4324
4324
  return [2 /*return*/, req];
4325
4325
  });
4326
4326
  });
@@ -4341,7 +4341,7 @@ var ProjectViewBookmark;
4341
4341
  case 1:
4342
4342
  data = _a.sent();
4343
4343
  api.Cache.Remove(GetCacheKey(viewId, data.ID));
4344
- api.Cache.Remove(GetListCacheKey());
4344
+ api.Cache.Remove(GetListCacheKey(viewId));
4345
4345
  return [2 /*return*/, data];
4346
4346
  }
4347
4347
  });