Skip to content

Commit

Permalink
fix: add owner field to conversation model (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian authored Oct 28, 2024
1 parent fac63c1 commit 705ac3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
\\"isArray\\": false,
\\"isRequired\\": false,
\\"isReadOnly\\": true
},
\\"owner\\": {
\\"name\\": \\"owner\\",
\\"type\\": \\"String\\",
\\"attributes\\": [],
\\"isArray\\": false,
\\"isRequired\\": false
}
},
\\"syncable\\": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function generateConversationModel(modelName: string, messageModelName: string):
messages: generateMessagesField(messageModelName),
createdAt: generateTimestampField('createdAt'),
updatedAt: generateTimestampField('updatedAt'),
owner: generateField('owner', 'String'),
},
syncable: true,
pluralName: plural(modelName),
Expand Down

0 comments on commit 705ac3a

Please sign in to comment.