shuttlepro-shared 1.2.15 → 1.2.16

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/models/Profile.js CHANGED
@@ -37,12 +37,10 @@ const addOrUpdateProfilesInRedis = async (profile) => {
37
37
  const fetchProfiles = async (workspaceId) => {
38
38
  try {
39
39
  let profiles = await getRedisData(`${workspaceId}-profiles`);
40
- console.log(profiles, "profiles");
41
40
  if (!profiles || profiles.length === 0) {
42
41
  profiles = await Profile.find({ workspaceId }).lean().exec();
43
42
  setRedisData(`${workspaceId}-profiles`, profiles);
44
43
  }
45
- console.log(profiles, "profiles");
46
44
  return profiles;
47
45
  } catch (err) {
48
46
  return [];
@@ -51,14 +49,12 @@ const fetchProfiles = async (workspaceId) => {
51
49
 
52
50
  const fetchByProfileIdAndWorkspaceId = async (id, workspaceId) => {
53
51
  try {
54
- console.log(id, workspaceId, "id, workspaceId");
55
52
  let profiles = await fetchProfiles(workspaceId);
56
53
  let profile = profiles.find(
57
54
  (p) =>
58
55
  (p?.profileId === id || p._id.toString() === id.toString()) &&
59
56
  p?.workspaceId.toString() === workspaceId.toString()
60
57
  );
61
- console.log(profile, "profile");
62
58
  return profile || null;
63
59
  } catch (err) {
64
60
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {