This commit is contained in:
Peter Maquiran
2021-06-30 16:11:07 +01:00
parent 6bf39545b6
commit 5fb6ca2ecf
3 changed files with 23 additions and 26 deletions
@@ -177,16 +177,11 @@ export class NewPublicationPage implements OnInit {
FileBase64: this.capturedImage,
FileExtension: 'jpeg',
}
/* console.log('Create');
console.log(this.publication); */
this.publications.CreatePublication(this.folderId, this.publication).toPromise();
this.close();
try {
console.log(this.publication);
await this.publications.CreatePublication(this.folderId, this.publication).toPromise()
await this.publications.CreatePublication(this.folderId, this.publication).toPromise();
this.close();
this.toastService.successMessage("Publicação criado")