mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 09:01:38 +01:00
simplify anivrecord creation
This commit is contained in:
@@ -3,10 +3,10 @@ import User from "user";
|
||||
import { anivTimeouts } from "db/schema";
|
||||
import { type anivBots } from "lib/handleAnivMessage";
|
||||
|
||||
export async function createAnivTimeoutRecord(message: string, anivbot: anivBots, user: User, duration: number) {
|
||||
export async function createAnivTimeoutRecord(message: string, anivBot: anivBots, user: User, duration: number) {
|
||||
await db.insert(anivTimeouts).values({
|
||||
message,
|
||||
anivBot: anivbot,
|
||||
anivBot,
|
||||
user: parseInt(user.id),
|
||||
duration
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user