fix: remove duplicate owner variable in botManager

This commit is contained in:
Christomatt
2026-02-01 02:55:48 +01:00
parent f55dec9a60
commit 1f171e127f
-3
View File
@@ -409,9 +409,6 @@ export async function createBot(ownerId: string, config: BotCreateInput): Promis
.set({ followersCount: 1 })
.where(eq(users.id, botUser.id));
const owner = await db.query.users.findFirst({
where: eq(users.id, ownerId),
});
if (owner) {
await db.update(users)
.set({ followingCount: owner.followingCount + 1 })