mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 00:38:28 +03:00
fix: proper ID check
This commit is contained in:
@@ -5,7 +5,7 @@ MutateCollection("folders.json", (folders) => {
|
||||
logger.info("Updating Folders.");
|
||||
|
||||
for (const folder of folders) {
|
||||
if(!folder.id?.startsWith("F")) {
|
||||
if(folder.id === undefined || !folder.id.startsWith("F")) {
|
||||
folder.id = CreateFolderID();
|
||||
logger.info(`Updating ${folder.slug}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user