🎨 Finish restructuring app

This commit is contained in:
brunosimon
2017-07-30 01:53:52 +02:00
parent fd18099109
commit ef8d9279af
8 changed files with 173 additions and 230 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ class File
this.path.directory = _options.path
this.path.full = this.path.directory + '/' + this.name
this.versions = []
this.socket = _options.socket
this.projectSocket = _options.projectSocket
const nameParts = this.name.split('.')
@@ -75,7 +75,7 @@ class File
}
// Emit
this.socket.emit('createVersion', { file: this.path.full, version })
this.projectSocket.emit('createVersion', { file: this.path.full, version })
// Save
this.versions.push(version)