From d31b1b47ab27c973005524531b10ea9ef2d62576 Mon Sep 17 00:00:00 2001 From: Geoffrey Ragot Date: Fri, 27 Sep 2024 18:27:08 +0200 Subject: [PATCH] chore: pre commit --- docs/events/CommittedTransactions.json | 6 +++--- docs/events/RevertedTransaction.json | 6 +++--- go.sum | 2 -- internal/ledger.go | 3 ++- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/events/CommittedTransactions.json b/docs/events/CommittedTransactions.json index 0ae1a2cc0..0be89a80a 100644 --- a/docs/events/CommittedTransactions.json +++ b/docs/events/CommittedTransactions.json @@ -77,9 +77,9 @@ "type": "array" }, "Time": { - "properties": {}, - "additionalProperties": false, - "type": "object" + "type": "string", + "format": "date-time", + "title": "Normalized date" }, "Transaction": { "properties": { diff --git a/docs/events/RevertedTransaction.json b/docs/events/RevertedTransaction.json index 28f788f38..28f65f5b7 100644 --- a/docs/events/RevertedTransaction.json +++ b/docs/events/RevertedTransaction.json @@ -71,9 +71,9 @@ ] }, "Time": { - "properties": {}, - "additionalProperties": false, - "type": "object" + "type": "string", + "format": "date-time", + "title": "Normalized date" }, "Transaction": { "properties": { diff --git a/go.sum b/go.sum index f8e21146b..0d9c45d19 100644 --- a/go.sum +++ b/go.sum @@ -93,8 +93,6 @@ github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/formancehq/go-libs v1.7.2-0.20240927125534-5e1d89567352 h1:EeSb5i9bxQlB3aRV9IA/jxoeIjgnMJ0NdI8blWBercQ= -github.com/formancehq/go-libs v1.7.2-0.20240927125534-5e1d89567352/go.mod h1:ynmWBbsdhVyjE+MxneMErtgd/RnNAk892VuIhZE2fps= github.com/formancehq/go-libs v1.7.2-0.20240927143916-90a2f07df259 h1:UNR167W1JQgqqcHyvE6qRc0oYYN68s6zdee2bjlxfDA= github.com/formancehq/go-libs v1.7.2-0.20240927143916-90a2f07df259/go.mod h1:oLMVltNsXmvqLA0Ox5NSwVSeH8gbnG2ZUo6Lchp23XU= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= diff --git a/internal/ledger.go b/internal/ledger.go index e2aa81759..17a9209cb 100644 --- a/internal/ledger.go +++ b/internal/ledger.go @@ -10,6 +10,7 @@ import ( ) const ( + // todo: add feature to completely disable logs FeatureMovesHistory = "MOVES_HISTORY" // todo: depends on FeatureMovesHistory (dependency should be checked) FeatureMovesHistoryPostCommitEffectiveVolumes = "MOVES_HISTORY_POST_COMMIT_EFFECTIVE_VOLUMES" @@ -163,4 +164,4 @@ func MustNewWithDefault(name string) Ledger { panic(err) } return *ledger -} \ No newline at end of file +}