File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2626 },
2727 "homepage" : " https://github.com/CoCreate-app/CoCreate-docs#readme" ,
2828 "dependencies" : {
29- "@cocreate/crud-client" : " ^1.4.13 " ,
30- "@cocreate/hosting" : " ^1.2.34 " ,
31- "@cocreate/socket-client" : " ^1.3.4 " ,
29+ "@cocreate/crud-client" : " ^1.4.14 " ,
30+ "@cocreate/hosting" : " ^1.2.35 " ,
31+ "@cocreate/socket-client" : " ^1.3.5 " ,
3232 "extract-comments" : " ^1.1.0" ,
3333 "glob" : " ^7.1.6" ,
3434 "parse-html-comments" : " ^1.3.1"
Original file line number Diff line number Diff line change @@ -41,24 +41,24 @@ const commonParam = {
4141
4242async function runStore ( info , type ) {
4343 try {
44- let status = false ;
45- const event = "docEvent" + Date . now ( )
44+ let response = false ;
45+ // const event = "docEvent" + Date.now()
4646 if ( ! info . document_id ) {
47- status = CoCreateCrud . createDocument ( {
47+ response = await CoCreateCrud . createDocument ( {
4848 ...commonParam ,
4949 ...info ,
5050 event
5151 } )
5252 } else {
53- status = CoCreateCrud . updateDocument ( {
53+ response = await CoCreateCrud . updateDocument ( {
5454 ...commonParam ,
5555 ...info ,
5656 upsert : true ,
5757 event
5858 } )
5959 }
60- if ( status ) {
61- let response = await CoCreateCrud . listenAsync ( event )
60+ if ( response ) {
61+ // let response = await CoCreateCrud.listenAsync(event)
6262 console . log ( 'type ------------------------- ' , type )
6363 console . log ( response )
6464 return response ;
You can’t perform that action at this time.
0 commit comments