refactor(db): fix warning table to follow prisma naming convention

This commit is contained in:
smyalygames
2023-02-15 13:01:09 +00:00
parent d0d9dbacfd
commit eb345d1866
4 changed files with 26 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import { container } from '@sapphire/framework';
import type { Snowflake } from 'discord.js';
export async function addWarn(userId: Snowflake, modId: Snowflake, message: string) {
await container.database.warnings.create({
await container.database.warning.create({
data: {
user: {
connect: {