forked from oat/in-the-database-2
funny eslint
what i find funny is i already fucked up and ive only made a boilerplate
This commit is contained in:
parent
dec7600b92
commit
587207f99e
6 changed files with 1286 additions and 6 deletions
|
@ -8,10 +8,10 @@ import * as format from './lib/format';
|
|||
const config = JSON.parse(fs.readFileSync('./config/config.json', {encoding: 'utf8'}));
|
||||
|
||||
const dbClient = mongoose.connect(`${config.dbconnectionURL}/${config.dbname}`, {
|
||||
useNewUrlParser: true, // idfk what any of this does i just copied an example
|
||||
useUnifiedTopology: true,
|
||||
useFindAndModify: false,
|
||||
useCreateIndex: true
|
||||
useNewUrlParser: true, // idfk what any of this does i just copied an example
|
||||
useUnifiedTopology: true,
|
||||
useFindAndModify: false,
|
||||
useCreateIndex: true
|
||||
});
|
||||
|
||||
const logger = winston.createLogger({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
export function formatTime(date: Date) : string {
|
||||
let hours = date.getUTCHours();
|
||||
let minutes = date.getUTCMinutes();
|
||||
const hours = date.getUTCHours();
|
||||
const minutes = date.getUTCMinutes();
|
||||
|
||||
return `${hours < 10 ? '0' : ''}${hours}:${minutes < 10 ? '0' : ''}${minutes} UTC`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue