Skip to content

Commit

Permalink
feat: 🎸 db存放位置移动到 Library/Caches/{App Name}中
Browse files Browse the repository at this point in the history
Closes: #157
  • Loading branch information
meetqy committed Jun 2, 2023
1 parent d2566d1 commit b88281b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { homedir } from "os";
import { PrismaClient } from "@prisma/client";
import * as fs from "fs-extra";

export * from "@prisma/client";

const globalForPrisma = globalThis as { prisma?: PrismaClient };

const _userHome = process.env["HOME"] || process.env["USERPROFILE"];
const cacheDir = `${_userHome}/Library/Caches/Rao Pics`;
const cacheDir = `${homedir()}/Library/Caches/Rao Pics`;

/**
* 创建sqlite数据库
Expand Down

0 comments on commit b88281b

Please sign in to comment.