This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
models.Traffic.destroy({ | |
where: {} | |
}).then(function () { | |
return models.TrafficFull.destroy({where: {}}); | |
}).then(function () { | |
return new Promise(function(resolve, reject) { | |
var since = new Date(req.body.since); | |
var to = new Date(req.body.to); | |
var pad = '00'; | |
var subqueries = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Refactor: do this in a smarter way | |
let columns = [] | |
_.each(res.results, res => { | |
_.each(Object.keys(res), key => { | |
if (!_.find(columns, o => o.key === key)) | |
columns.push({ key: key, title: key, dataIndex: key }) | |
}) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return ( | |
<Mutation<RegisterMutation, RegisterMutationVariables> mutation={registerMutation}> | |
{ | |
mutate => ( | |
) | |
} | |
</Mutation> | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Prov from "../models/Prov"; | |
import Provone from "../models/Provone"; | |
import { | |
SQL_INNER_JOIN, | |
SQL_UNION, | |
SQL_LEFT_JOIN | |
} from "../mediators/mediationTypes"; | |
import * as lodash from "lodash"; | |
const filterObjectByKeys = (object: any, allowed: Array<any>): Object => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Prov from "../models/Prov"; | |
import Provone from "../models/Provone"; | |
import { | |
SQL_INNER_JOIN, | |
SQL_UNION, | |
SQL_LEFT_JOIN | |
} from "../mediators/mediationTypes"; | |
import * as lodash from "lodash"; | |
const filterObjectByKeys = (object: any, allowed: Array<any>): Object => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Prov from "../models/Prov"; | |
import Provone from "../models/Provone"; | |
import { | |
SQL_INNER_JOIN, | |
SQL_UNION, | |
SQL_LEFT_JOIN | |
} from "../mediators/mediationTypes"; | |
import * as lodash from "lodash"; | |
const filterObjectByKeys = (object: any, allowed: Array<any>): Object => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package proxy | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"regexp" | |
"strconv" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package proxy | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"regexp" | |
"strconv" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package proxy | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"regexp" | |
"strconv" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package proxy | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"regexp" | |
"strconv" | |
) |
OlderNewer