From 2afd0e2acd505c3246a4afd4d4653339bf55e32b Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 16 Jul 2023 16:39:59 -0500 Subject: [PATCH] Update dbMigration for old main library ids --- server/utils/migrations/dbMigration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/migrations/dbMigration.js b/server/utils/migrations/dbMigration.js index 38541598..e5ac2f5b 100644 --- a/server/utils/migrations/dbMigration.js +++ b/server/utils/migrations/dbMigration.js @@ -1245,7 +1245,7 @@ async function handleOldUsers(ctx) { // Convert old library ids to new library ids if (user.librariesAccessible?.length) { user.librariesAccessible = user.librariesAccessible.map(lid => { - if (!lid.startsWith('lib_')) return lid // Already not an old library id so dont change + if (!lid.startsWith('lib_') && lid !== 'main') return lid // Already not an old library id so dont change hasUpdates = true return oldDbIdMap.libraries[lid] }).filter(lid => lid)