File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 "@tensorflow/tfjs" : " ^4.2.0" ,
4848 "@tensorflow/tfjs-node" : " ^4.22.0" ,
4949 "class-validator" : " ^0.14.0" ,
50+ "cors" : " ^2.8.6" ,
5051 "dotenv" : " ^10.0.0" ,
5152 "express" : " ^4.17.2" ,
5253 "faker" : " ^5.5.3" ,
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export class PostService {
149149 post . original_price ,
150150 images ,
151151 user ,
152- embedding ,
152+ embedding as number [ ] ,
153153 ) ;
154154
155155 // Manually set user relation on freshPost making sure it loads
Original file line number Diff line number Diff line change @@ -82,14 +82,14 @@ export class RequestService {
8282 request . description ,
8383 request . archive ,
8484 user ,
85- embedding ,
85+ embedding as number [ ] ,
8686 ) ;
8787 if ( embedding ) {
8888 const postRepository = Repositories . post ( transactionalEntityManager ) ;
8989 // TODO: How many similar posts do we want to fetch?
9090 console . log ( user . firebaseUid ) ;
9191 const similarPosts = await postRepository . findSimilarPosts (
92- embedding ,
92+ embedding as number [ ] ,
9393 user . firebaseUid ,
9494 10 ,
9595 ) ;
You can’t perform that action at this time.
0 commit comments