mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix message and and updload
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { PublicationFormMV } from 'src/app/shared/publication/upload/upload-streaming.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
|
||||
@@ -151,6 +151,7 @@ class ReconnectingWebSocketSignalR {
|
||||
console.log('committing')
|
||||
return new Promise((resolve, reject) => {
|
||||
if(this.isOpen) {
|
||||
console.log('open')
|
||||
try {
|
||||
console.log('this.connection.invoke', this.connection)
|
||||
this.connection.invoke("CommitUpload", path).then((e) => {
|
||||
@@ -168,6 +169,7 @@ class ReconnectingWebSocketSignalR {
|
||||
}
|
||||
|
||||
} else {
|
||||
console.log('wait')
|
||||
this.onConnect.push(()=> {
|
||||
resolve(this.commit(path))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user