@roadmanjs/chat 0.0.65 → 0.0.66

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.
@@ -12,6 +12,9 @@ exports.ChatConvoFragment = (0, graphql_tag_1.default) `
12
12
  id
13
13
  convoId
14
14
  name
15
+ source
16
+ sourceId
17
+ sourceType
15
18
  avatar
16
19
  owner {
17
20
  ...ChatUserTypeFragment
@@ -1 +1 @@
1
- {"version":3,"file":"chatConvo.fragment.js","sourceRoot":"","sources":["../../../src/chat/fragments/chatConvo.fragment.ts"],"names":[],"mappings":";;;;;;AAAA,iEAA+D;AAC/D,2DAAyD;AACzD,8DAA8B;AAEjB,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;MAsB9B,8CAAuB;MACvB,wCAAoB;CACzB,CAAC"}
1
+ {"version":3,"file":"chatConvo.fragment.js","sourceRoot":"","sources":["../../../src/chat/fragments/chatConvo.fragment.ts"],"names":[],"mappings":";;;;;;AAAA,iEAA+D;AAC/D,2DAAyD;AACzD,8DAA8B;AAEjB,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;MAyB9B,8CAAuB;MACvB,wCAAoB;CACzB,CAAC"}
@@ -177,7 +177,7 @@ const startConvo = async (args) => {
177
177
  LEFT JOIN \`${bucket}\` source
178
178
  ON KEYS convo.sourceId
179
179
 
180
- WHERE convo.group = true
180
+ WHERE convo.\`group\` = true
181
181
  AND convo.sourceType = "${sourceType}"
182
182
  AND convo.sourceId = "${sourceId}"
183
183
  AND convo.owner = "${owner}"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@roadmanjs/chat",
3
- "version": "0.0.65",
4
- "description": " A roadman for chat and groups, using UserType from 'auth'",
3
+ "version": "0.0.66",
4
+ "description": " A roadman for chat and groups",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -7,6 +7,9 @@ export const ChatConvoFragment = gql`
7
7
  id
8
8
  convoId
9
9
  name
10
+ source
11
+ sourceId
12
+ sourceType
10
13
  avatar
11
14
  owner {
12
15
  ...ChatUserTypeFragment
@@ -190,7 +190,7 @@ export const startConvo = async (args: ChatConvoType): Promise<ChatResType> => {
190
190
  LEFT JOIN \`${bucket}\` source
191
191
  ON KEYS convo.sourceId
192
192
 
193
- WHERE convo.group = true
193
+ WHERE convo.\`group\` = true
194
194
  AND convo.sourceType = "${sourceType}"
195
195
  AND convo.sourceId = "${sourceId}"
196
196
  AND convo.owner = "${owner}"