fix message and and updload

This commit is contained in:
Peter Maquiran
2024-04-01 15:59:18 +01:00
parent 28beeb3879
commit f754da8cde
5 changed files with 24 additions and 181 deletions
@@ -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))
})