add more real estates to test
This commit is contained in:
@@ -1,13 +1,24 @@
|
||||
const { getRealEstateById } = require("../app/helpers/db/realEstate");
|
||||
const {
|
||||
findSearchRequestsForRealEstate
|
||||
} = require("../app/helpers/db/searchRequest");
|
||||
notifyForNewRealEstates
|
||||
} = require("../app/services/notificationService");
|
||||
|
||||
(async () => {
|
||||
const realEstate = await getRealEstateById(53069);
|
||||
const searchRequestsForRealEstate = await findSearchRequestsForRealEstate(
|
||||
realEstate
|
||||
);
|
||||
const realEstate1 = await getRealEstateById(53069); //B.Luka, 149.000 KM, 67m2
|
||||
const realEstate2 = await getRealEstateById(53180); //B.Luka, 70.000 KM, 24m2
|
||||
|
||||
console.log(searchRequestsForRealEstate);
|
||||
const realEstate3 = await getRealEstateById(53067); //Grbavica, 109.500 KM, 51m2
|
||||
const realEstate4 = await getRealEstateById(53077); //alipašino, 66.000 KM, 32.58 m2
|
||||
|
||||
const realEstate5 = await getRealEstateById(53080); //Tuzla, - KM, 47,1 m2
|
||||
const realEstate6 = await getRealEstateById(53646); //Tuzla, 73.500 KM, 53m2
|
||||
|
||||
notifyForNewRealEstates([
|
||||
realEstate1,
|
||||
realEstate2,
|
||||
realEstate3,
|
||||
realEstate4,
|
||||
realEstate5,
|
||||
realEstate6
|
||||
]);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user