feat: updates

This commit is contained in:
qier222 2023-03-05 19:03:52 +08:00
parent 840a5b8e9b
commit cb0a809b16
No known key found for this signature in database
29 changed files with 1550 additions and 449 deletions

View file

@ -12,7 +12,7 @@ import { Thumbar } from './windowsTaskbar'
import fastFolderSize from 'fast-folder-size'
import path from 'path'
import prettyBytes from 'pretty-bytes'
import prisma from './prisma'
import { db, Tables } from './db'
const on = <T extends keyof IpcChannelsParams>(
channel: T,
@ -204,7 +204,7 @@ function initOtherIpcMain() {
* 退
*/
handle(IpcChannels.Logout, async () => {
await prisma.accountData.deleteMany({})
await db.truncate(Tables.AccountData)
return true
})