|
|
@ -1,9 +1,5 @@ |
|
|
|
import { getApiKey } from './services/api_keys'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import * as moment from 'moment-timezone'; |
|
|
|
import * as moment from 'moment-timezone'; |
|
|
|
|
|
|
|
|
|
|
|
import * as _ from 'lodash'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export async function promisify(method: (...params: any[]) => Promise<any> | void, ...params: any[]) { |
|
|
|
export async function promisify(method: (...params: any[]) => Promise<any> | void, ...params: any[]) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
method(...params, (err, result) => { |
|
|
|
method(...params, (err, result) => { |
|
|
|