You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2023. It is now read-only.
},(_err,_res,_resBody)=>{// TODO: add caching layer to speed up SSR? How to invalidate products (checksum on the response BEFORE processing it)
90
-
if(_resBody&&_resBody.hits&&_resBody.hits.hits){// we're signing up all objects returned to the client to be able to validate them when (for example order)
91
-
constfactory=newProcessorFactory(config)
92
-
consttagsArray=[]
93
-
if(config.server.useOutputCache&&cache){
94
-
consttagPrefix=entityType[0].toUpperCase()// first letter of entity name: P, T, A ...
},async(_err,_res,_resBody)=>{// TODO: add caching layer to speed up SSR? How to invalidate products (checksum on the response BEFORE processing it)
91
+
if(_err||_resBody.error){
92
+
apiError(res,_err||_resBody.error);
93
+
return
94
+
}
95
+
try{
96
+
if(_resBody&&_resBody.hits&&_resBody.hits.hits){// we're signing up all objects returned to the client to be able to validate them when (for example order)
97
+
constfactory=newProcessorFactory(config)
98
+
consttagsArray=[]
99
+
if(config.server.useOutputCache&&cache){
100
+
consttagPrefix=entityType[0].toUpperCase()// first letter of entity name: P, T, A ...
0 commit comments