fix(s3): generate and use seaweedfs signed urls for properties and documents
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-19 06:30:00 +03:30
parent acb2e5d623
commit 982b9e759f
4 changed files with 56 additions and 17 deletions
+2 -2
View File
@@ -68,11 +68,11 @@ const belongingSchema = new mongoose.Schema(
belongingSchema.plugin(AutoIncrement, { inc_field: 'belongingCode' })
belongingSchema.methods.getDocumentsSignedUrls = function () {
return getMultipleSignedUrls(this.documentUrls, 'belonging-documents')
return getMultipleSignedUrls(this.documentUrls, 'documents')
}
belongingSchema.methods.getMainImagedSignedUrl = function () {
return getMultipleSignedUrls(this.mainImageUrls, 'belonging-images')
return getMultipleSignedUrls(this.mainImageUrls, 'properties')
}
belongingSchema.index({ location: '2dsphere' }) // Enable geospatial queries