feat: switch to postgres only sync, removed nats publishing
Some checks failed
release / docker (push) Has been cancelled

This commit is contained in:
2025-01-09 09:28:41 +03:00
parent d9c619ad71
commit cd5b31d07e
7 changed files with 52 additions and 158 deletions

View File

@@ -15,13 +15,14 @@ const (
ACCOUNT_ACTIVE_VOUCHER = 17
)
var ValidDataTypeLookup = map[uint16]struct{}{
ACCOUNT_BLOCKCHAIN_ADDRESS: {},
ACCOUNT_FIRST_NAME: {},
ACCOUNT_LAST_NAME: {},
ACCOUNT_YOB: {},
ACCOUNT_LOCATION: {},
ACCOUNT_GENDER: {},
ACCOUNT_COMMODITIES: {},
ACCOUNT_ACTIVE_VOUCHER: {},
// ValidDataTypeLookup allows us to filter go-vise data types, additionally the value maps to the ussd_data coulmn
var ValidDataTypeLookup = map[uint16]string{
ACCOUNT_BLOCKCHAIN_ADDRESS: "blockchain_address",
ACCOUNT_FIRST_NAME: "first_name",
ACCOUNT_LAST_NAME: "last_name",
ACCOUNT_YOB: "yob",
ACCOUNT_LOCATION: "location_name",
ACCOUNT_GENDER: "gender",
ACCOUNT_COMMODITIES: "commodities",
ACCOUNT_ACTIVE_VOUCHER: "active_voucher",
}