fix(s3): generate and use seaweedfs signed urls for properties and documents
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -116,11 +116,11 @@ const propertySchema = new mongoose.Schema(
|
||||
propertySchema.plugin(AutoIncrement, { inc_field: 'propertyCode' })
|
||||
|
||||
propertySchema.methods.getDocumentsSignedUrls = function () {
|
||||
return getMultipleSignedUrls(this.documentUrls, 'property-documents')
|
||||
return getMultipleSignedUrls(this.documentUrls, 'documents')
|
||||
}
|
||||
|
||||
propertySchema.methods.getMainImagedSignedUrl = function () {
|
||||
return getMultipleSignedUrls(this.mainImageUrls, 'property-images')
|
||||
return getMultipleSignedUrls(this.mainImageUrls, 'properties')
|
||||
}
|
||||
|
||||
propertySchema.index({ location: '2dsphere' })
|
||||
|
||||
Reference in New Issue
Block a user