REFACTOR: Belonging → Property system migration + utilities update
Property system: - Rename belonging → property throughout (model, controller, routes, service) - Add property sub-models: buildingModel, landModel, belongingModel - Add property lifecycle events: createProperty, deleteProperty - Add propertyStatus component (model, controller, routes, service, seeder) - Add commodity and commodityTransaction model stubs Infrastructure: - Update transactionModel and transactionService - Update events/index.js for new property events - Update seeder (seederDBConnection, seederRunner) - Update typesense client configuration - Update upload utilities (bucket, minio) - Update featureModel and featureSeeder - Update categorySeeder - Update TsApiFeatures utility - Remove docker-compose.yml (moved to root) - Remove legacy belonging component files
This commit is contained in:
+8
-3
@@ -1,11 +1,16 @@
|
||||
const TypeSense = require('typesense')
|
||||
|
||||
const tsUrlParts = (process.env.TYPE_SENSE_URL || 'localhost:8108').split(':')
|
||||
const host = tsUrlParts[0] || 'localhost'
|
||||
const port = tsUrlParts[1] || process.env.TYPE_SENSE_PORT || '8108'
|
||||
const protocol = process.env.TYPE_SENSE_PROTOCOL || 'http'
|
||||
|
||||
let client = new TypeSense.Client({
|
||||
nodes: [
|
||||
{
|
||||
host: process.env.TYPE_SENSE_URL,
|
||||
port: '443',
|
||||
protocol: 'https',
|
||||
host: host,
|
||||
port: port,
|
||||
protocol: protocol,
|
||||
},
|
||||
],
|
||||
apiKey: process.env.TYPE_SENSE_API_KEY,
|
||||
|
||||
Reference in New Issue
Block a user