feat: introduce database as a persistent storage for settings and history
refactor: arrange persistence layer as a port-adapter schema
This commit is contained in:
38 files changed
+539
-269
No files matched your search
@@ -26,7 +26,7 @@ async function replay(entry: HistoryTrack) {
|
||||
const pendingId = addPendingTrack(props.status.active_voice_channel.guild_id, entry.title)
|
||||
try {
|
||||
if (entry.is_local) {
|
||||
const path = entry.filepath ?? entry.url ?? entry.title
|
||||
const path = entry.url ?? entry.title
|
||||
await enqueue(path.split(/[\\/]/).pop() ?? path)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ export interface HistoryTrack {
|
||||
url: string | null
|
||||
duration: number | null
|
||||
is_local: boolean
|
||||
filepath: string | null
|
||||
}
|
||||
|
||||
export interface UploadedFile {
|
||||
|
||||
Reference in new issue
Block a user