fix(property): optimize save performance, fix 2dsphere index error and make search indexing non-blocking
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -77,7 +77,7 @@ exports.getProperty = catchAsync(async (req, res, next) => {
|
||||
|
||||
exports.updateProperty = catchAsync(async (req, res, next) => {
|
||||
const property = await propertyService.updateProperty(req.params.propertyId, req.body)
|
||||
await propertyService.indexAllProperties()
|
||||
eventEmitter.emit('updateProperty', property)
|
||||
|
||||
res.status(200).json({
|
||||
status: 'success',
|
||||
|
||||
Reference in New Issue
Block a user