Browse Source

remove old code

Kieran Gibb 2 years ago
parent
commit
3359b2537f
No known key found for this signature in database
1 changed files with 0 additions and 25 deletions
  1. 0
    25
      query.js

+ 0
- 25
query.js View File

@@ -1,25 +0,0 @@
1
-const fs = require('fs')
2
-const path = require('path')
3
-const debug = require('debug')('cobox-group')
4
-const { schema: validate } = require('cobox-command-schemas')
5
-
6
-module.exports = {
7
-  log: {
8
-    validator: (msg, opts) => {
9
-      try {
10
-        msg.value = JSON.parse(msg.value.toString())
11
-        var result = validate(msg.value, opts)
12
-        if (result) return msg
13
-        return result
14
-      } catch (err) {
15
-        debug(err)
16
-        return false
17
-      }
18
-    },
19
-    indexes: [
20
-      { key: 'log', value: [['value', 'timestamp']] },
21
-      { key: 'typ', value: [['value', 'type'], ['value', 'timestamp']] },
22
-      { key: 'cmd', value: [['value', 'type'], ['value', 'timestamp'], ['value', 'content', 'command']] }
23
-    ]
24
-  }
25
-}