Removed return type from generateId()
This commit is contained in:
parent
88179f1c4c
commit
023bf7ac3f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user