Sfoglia il codice sorgente

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

asmer@controller 4 anni fa
parent
commit
0fb4834bf3
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  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}
     }