mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-11 18:09:50 +08:00
downgrade sqlite patch version to solve I couldn't build successfully in electron TryGhost/node-sqlite3 #1746
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"main": "dist/index.js",
|
||||
"dependencies": {
|
||||
"reflect-metadata": "^0.2.1",
|
||||
"sqlite3": "^5.1.7",
|
||||
"sqlite3": "5.1.6",
|
||||
"typeorm": "0.3.11",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.3.3"
|
||||
|
||||
@@ -13,6 +13,8 @@ import { JobInfoChangeLog } from "./entity/JobInfoChangeLog";
|
||||
import { BossActiveStatusRecord } from "./entity/BossActiveStatusRecord";
|
||||
import { UserInfo } from "./entity/UserInfo";
|
||||
|
||||
import sqlite3 from 'sqlite3';
|
||||
|
||||
function initDb(dbFilePath) {
|
||||
const { DataSource } = requireTypeorm()
|
||||
const appDataSource = new DataSource({
|
||||
@@ -21,6 +23,7 @@ function initDb(dbFilePath) {
|
||||
logging: true,
|
||||
logger: "simple-console",
|
||||
database: dbFilePath,
|
||||
driver: sqlite3, // The important line
|
||||
entities: [
|
||||
ChatStartupLog,
|
||||
BossInfo,
|
||||
|
||||
Reference in New Issue
Block a user