Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurutomo committed May 11, 2022
1 parent c88ea85 commit bb4d7dd
Show file tree
Hide file tree
Showing 24 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/util/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AnyWASocket } from '../types'
import { existsSync, mkdirSync, PathLike, readFileSync, unlinkSync } from 'fs'
import Helper from './Helper'
import db from './Database'
import { JSONFile } from '../../lowdb'
import { JSONFile } from './lowdb'

const Logger = pino({ transport: { target: 'pino-pretty' }, prettyPrint: { levelFirst: true, ignore: 'hostname', translateTime: true } })
export default class Connection {
Expand Down
7 changes: 2 additions & 5 deletions src/util/Database.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Low, Adapter } from '../../lowdb'
import { Low, Adapter, Memory } from './lowdb'
import CloudDBAdapter from './db_adapters/JSONCloud'
import mongoDB from './db_adapters/MongoDB'

Expand All @@ -15,10 +15,7 @@ export class Database {
this.adapters = {
CloudDBAdapter, mongoDB
}
this.low = new Low({
async read() {},
async write() {}
})
this.low = new Low(new Memory)
this.data = this.low.data
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bb4d7dd

Please sign in to comment.