mirror of
https://github.com/hackku21/loc-chain-backend.git
synced 2026-03-02 03:40:09 +00:00
Remove unnecessary ORM code
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import {Config, Controllers, HTTPServer, Files, Middlewares, Routing, Unit} from '@extollo/lib'
|
||||
import {Database, Models} from "@extollo/orm";
|
||||
import {CommandLine} from "@extollo/cli";
|
||||
import {FirebaseUnit} from "./app/units/FirebaseUnit";
|
||||
|
||||
@@ -10,8 +9,6 @@ export const Units = [
|
||||
CommandLine,
|
||||
Controllers,
|
||||
Middlewares,
|
||||
Database,
|
||||
Models,
|
||||
|
||||
Routing,
|
||||
HTTPServer,
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import { env } from "@extollo/lib";
|
||||
|
||||
export default {
|
||||
connections: {
|
||||
default: {
|
||||
user: env('DATABASE_USERNAME', 'extollo'),
|
||||
password: env('DATABASE_PASSWORD'),
|
||||
host: env('DATABASE_HOST', 'localhost'),
|
||||
port: env('DATABASE_PORT', 5432),
|
||||
database: env('DATABASE_NAME', 'extollo_1'),
|
||||
dialect: env('DATABASE_DIALECT', 'postgres'),
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import {env, basePath} from "@extollo/lib"
|
||||
import {ORMSession} from "@extollo/orm"
|
||||
import {env, basePath, MemorySession} from "@extollo/lib"
|
||||
import {LocalFilesystem, LocalFilesystemConfig} from "@extollo/util"
|
||||
|
||||
export default {
|
||||
@@ -7,7 +6,7 @@ export default {
|
||||
|
||||
session: {
|
||||
/* The implementation of @extollo/lib.Session that serves as the session backend. */
|
||||
driver: ORMSession,
|
||||
driver: MemorySession,
|
||||
},
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import {Model} from "@extollo/orm";
|
||||
|
||||
export class User extends Model<User> {
|
||||
protected static table = 'users';
|
||||
protected static key = 'user_id';
|
||||
}
|
||||
Reference in New Issue
Block a user