diff --git a/models/FileMongo.js b/models/FileMongo.js index 8d71ed4..28d83f7 100644 --- a/models/FileMongo.js +++ b/models/FileMongo.js @@ -29,6 +29,10 @@ var FileMongoShema = new Schema({ owner: { type: String, unique: false + }, + lastDate: { + type: String, + unique: false } }); diff --git a/public/business angel investisseur.txt b/public/business angel investisseur.txt deleted file mode 100644 index 0c8a489..0000000 --- a/public/business angel investisseur.txt +++ /dev/null @@ -1,16 +0,0 @@ -https://daphni.com/ -https://www.kimaventures.com/ -https://www.ventechvc.com/ -https://www.accel.com/ -https://www.balderton.com/ -https://www.alven.co/ -http://www.korelyacapital.com/ -https://partechpartners.com/ -http://www.isai.fr/ -https://newfundcap.com/ -http://www.elaia.com/ -http://www.exponcapital.com/ -https://www.serenacapital.com/ -http://aglaeventures.com/ -http://aster.com/ -http://www.axeleo.com/ \ No newline at end of file diff --git a/src/app/book/book.component.ts b/src/app/book/book.component.ts index 30bcdca..faca757 100644 --- a/src/app/book/book.component.ts +++ b/src/app/book/book.component.ts @@ -74,11 +74,13 @@ export class BookComponent implements OnInit, OnDestroy { //console.log('mothafukaaaaaaaaaaa : ' + JSON.stringify(this.currentUser)); //console.log('mothafukaaaaaaaaaaa : ' + this.currentUser._id); console.log('avaaaaanttttt : ' + this.currentUser.username.toString() + ' ---- ' + this.currentUser._id.toString()); - - if(this.currentUser.username) - this.http.post('api/uploadFileMongo', { name: result[0].filename.toString(), path: result[0].path.toString(), extention: this.filesToUpload[0].type.toString(), taille: this.filesToUpload[0].size.toString(), idUser: this.currentUser._id.toString(), owner: this.currentUser.username.toString() }).subscribe(resp => { + console.log('lastModifiedDateee : ' + this.filesToUpload[0].lastModifiedDate.toString()); + // if(this.currentUser.username) + this.http.post('api/uploadFileMongo', { name: result[0].filename.toString(), path: result[0].path.toString(), extention: this.filesToUpload[0].type.toString(), taille: this.filesToUpload[0].size.toString(), idUser: this.currentUser._id.toString(), owner: this.currentUser.username.toString(), lastDate: this.filesToUpload[0].lastModifiedDate.toString() }).subscribe(resp => { console.log('ok db !!' + resp.toString()); this.getfile(); + this.filesToUpload = null; + this.fileChooseName = 'None'; }, err => { console.log('errrrr : ' + err); message = err.error.msg;