From 8753c92cabc8e89281be75c3192112be0fcaee2b Mon Sep 17 00:00:00 2001 From: Athozus Date: Wed, 7 Aug 2024 14:55:18 +0200 Subject: [PATCH] Do not call the function itself to check if it exists Co-authored-by: luk3yx --- migrate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate.lua b/migrate.lua index 5cdad9e..5f08a64 100644 --- a/migrate.lua +++ b/migrate.lua @@ -148,7 +148,7 @@ local function fix_box_duplicate_uuids(playername, box) local exists = is_uuid_existing(uuid) if exists and not are_message_sames(exists, m) then local new_uuid = mail.new_uuid() -- generates a new uuid to replace doublons - if mail.storage:get_keys() then + if mail.storage.get_keys then for _, k in ipairs(mail.storage:get_keys()) do if string.sub(k,1,5) == "mail/" then local p = string.sub(k, 6)