Removed return type from generateId()

This commit is contained in:
Dev 2024-01-27 21:01:57 +00:00
parent 88179f1c4c
commit 023bf7ac3f

View File

@ -214,10 +214,10 @@ export class BotGenerator
this.addDogtagToBot(bot); this.addDogtagToBot(bot);
} }
// generate new bot ID // Generate new bot ID
bot = this.generateId(bot); this.generateId(bot);
// generate new inventory ID // Generate new inventory ID
this.generateInventoryID(bot); this.generateInventoryID(bot);
// Set role back to originally requested now its been generated // Set role back to originally requested now its been generated
@ -442,14 +442,12 @@ export class BotGenerator
* @param bot bot to update * @param bot bot to update
* @returns updated IBotBase object * @returns updated IBotBase object
*/ */
protected generateId(bot: IBotBase): IBotBase protected generateId(bot: IBotBase): void
{ {
const botId = this.hashUtil.generate(); const botId = this.hashUtil.generate();
bot._id = botId; bot._id = botId;
bot.aid = this.hashUtil.generateAccountId(); bot.aid = this.hashUtil.generateAccountId();
return bot;
} }
protected generateInventoryID(profile: IBotBase): void protected generateInventoryID(profile: IBotBase): void