For review view ad page.
This commit is contained in:
@@ -12,6 +12,20 @@ const bulkUpsertKiviPhotos = async kiviPhotosData => {
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
bulkUpsertKiviPhotos
|
||||
const findPhotosForKiviAd = async id => {
|
||||
try {
|
||||
return db.KiviOriginalAdsPhotos.findAll({
|
||||
where: {
|
||||
kiviAdId: id
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.log("kiviOriginalAdsPhotos.js", error);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
bulkUpsertKiviPhotos,
|
||||
findPhotosForKiviAd
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user