[Bug Fix] Fix Bot Cloning (#4186)

# Notes
- We were not setting `inventories_index` to `0` so it was trying to use the pre-existing unique identifier, causing the query to fail.
This commit is contained in:
Alex King 2024-03-16 23:09:57 -04:00 committed by GitHub
parent f829a99e6d
commit e5bdbc4f1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1788,7 +1788,8 @@ bool BotDatabase::CreateCloneBotInventory(const uint32 bot_id, const uint32 clon
}
for (auto& e : l) {
e.bot_id = clone_id;
e.inventories_index = 0;
e.bot_id = clone_id;
}
return BotInventoriesRepository::InsertMany(database, l);