]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix multiple typos in MongoDB query.conf (#5130)
authorJorge Pereira <jpereira@users.noreply.github.com>
Wed, 2 Aug 2023 17:21:39 +0000 (14:21 -0300)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Wed, 2 Aug 2023 17:23:53 +0000 (18:23 +0100)
raddb/mods-config/sql/main/mongo/queries.conf

index 732e1e802856ce288a90805838669b34b63cbbaa..847db9a623cd2008f4e51862f8a7ac47d0cc3178 100644 (file)
@@ -91,7 +91,7 @@ authorize_check_query = "db.${authcheck_table}.aggregate([ \
                        'op': ':=' \
                } \
        } \
-])" \
+])"
 
 # TBD: fill in things here
 authorize_reply_query = ""
@@ -150,7 +150,7 @@ accounting {
                                        }, \
                                        '$push': { \
                                                'events_data': { \
-                                                       'event_id': '%{sha256:%{tolower:%{Calling-Station-Id}', \
+                                                       'event_id': '%{sha256:%{tolower:%{Calling-Station-Id}}}', \
                                                        'event_type': 'Accounting-Start', \
                                                        'event_time': '%{Packet-Original-Timestamp}', \
                                                        'creation_date': { '$date': { '$numberLong': '%{expr: (%l * 1000) + (%M / 1000)}' } } \
@@ -202,7 +202,7 @@ accounting {
                                        }, \
                                        '$push': { \
                                                'events_data': { \
-                                                       'event_id': '%{sha256:%{tolower:%{Calling-Station-Id}', \
+                                                       'event_id': '%{sha256:%{tolower:%{Calling-Station-Id}}}', \
                                                        'event_type': 'Accounting-Interim-Update', \
                                                        'event_time': '%{Packet-Original-Timestamp}', \
                                                        'creation_date': { '$date': { '$numberLong': '%{expr: (%l * 1000) + (%M / 1000)}' } } \
@@ -235,7 +235,7 @@ accounting {
                                        }, \
                                        '$push': { \
                                                'events_data': { \
-                                                       'event_id': '%{sha256:%{tolower:%{Calling-Station-Id}', \
+                                                       'event_id': '%{sha256:%{tolower:%{Calling-Station-Id}}}', \
                                                        'event_type': 'Accounting-Stop', \
                                                        'event_time': '%{Packet-Original-Timestamp}', \
                                                        'creation_date': { '$date': { '$numberLong': '%{expr: (%l * 1000) + (%M / 1000)}' } } \