Skip to content

Commit

Permalink
fix: migrate ex plugin id
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Feb 23, 2024
1 parent 96f3631 commit 53cf69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.google.gson.GsonBuilder
class DatabaseEventHandler : DatabaseEventListener {

override suspend fun onReady(databaseManager: DatabaseManager) {
databaseManager.migrateNewPluginId("token", TokenPlugin.INSTANCE.context.pluginId, TokenPlugin.INSTANCE)
databaseManager.initialize(TokenPlugin.INSTANCE, TokenPlugin.tables, TokenPlugin.migrations)

TokenPlugin.databaseManager = databaseManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class ParsekEventHandler : ParsekEventListener {
configManager,
TokenPlugin.INSTANCE,
TokenConfig::class.java,
logger
logger,
exPluginIds = listOf("token")
)

logger.info("Initialized plugin config")
Expand Down

0 comments on commit 53cf69a

Please sign in to comment.