mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 12:06:58 +01:00
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
import db from "db/connection";
|
|
import { getLoots } from "db/schema";
|
|
import type { inventory } from "items";
|
|
import type User from "user";
|
|
|
|
|
|
export async function createGetLootRecord(user: User, qbucks: number, inventory: inventory) {
|
|
await db.insert(getLoots).values({
|
|
user: parseInt(user.id),
|
|
qbucks: qbucks,
|
|
items: inventory
|
|
});
|
|
};
|