|
@@ -131,7 +131,7 @@ module.exports = async (dbName='graphql-chat') => {
|
|
|
let result = await super.save(...params)
|
|
|
|
|
|
await this.chat
|
|
|
- this.chat.lastModified = this.createdAt
|
|
|
+ this.chat.lastModified = this.createdAt.toISOString()
|
|
|
await this.chat.save()
|
|
|
|
|
|
|
|
@@ -208,9 +208,7 @@ module.exports = async (dbName='graphql-chat') => {
|
|
|
|
|
|
|
|
|
|
|
|
- return {models: {
|
|
|
- SlicedSavable, ...SlicedSavable.classes
|
|
|
- },
|
|
|
+ return {models: { SlicedSavable, ...SlicedSavable.classes },
|
|
|
thisUser}
|
|
|
}
|
|
|
|