🎨 Finish restructuring app
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user