소스 검색

some updates: +socket about new chat, not message, lastmodified and group permissions

asmer@controller 4 년 전
부모
커밋
0fb4834bf3
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      models.js

+ 2 - 4
models.js

@@ -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}
     }