Removed deprecated panel entries in database

This commit is contained in:
DJj123dj
2026-06-01 19:16:03 +02:00
parent 97a7a966c8
commit 77ab113fc0
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -29,8 +29,6 @@ export interface ODDatabaseManagerIdMappings extends api.ODDatabaseManagerIdCons
* It's used to generate typescript declarations for this class.
*/
export interface ODGlobalDatabaseIdMappings extends api.ODDatabaseIdConstraint {
"opendiscord:panel-message":string,
"opendiscord:panel-update":string,
"opendiscord:option-suffix-counter":number,
"opendiscord:option-suffix-history":string[],
"opendiscord:last-version":string
+1 -1
View File
@@ -372,7 +372,7 @@ export const migrations = [
const message = await opendiscord.client.fetchChannelMessage(channelId,messageId)
const autoUpdate = typeof (await globalDatabase.get("opendiscord:panel-update",panelMessage.key)) == "string"
//if message still exists
if (message) migratedPanelStates.push({channelId,messageId,panelId:panelMessage.value,autoUpdate})
if (message) migratedPanelStates.push({channelId,messageId,panelId:panelMessage.value as string,autoUpdate})
await globalDatabase.delete("opendiscord:panel-message",panelMessage.key)
await globalDatabase.delete("opendiscord:panel-update",panelMessage.key)