Skip to content

Commit bd01a42

Browse files
committed
fix(service/command):The error of "Warning" was not found in "User"" was fixed
1 parent e00b5e6 commit bd01a42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/service/command/warn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class WarnService {
2121
* Adds a warning to a user.
2222
*/
2323
async warn(reason: string = "unknown") {
24-
let user = await this.userRepo.findByRelations(this.userId, "warning");
24+
let user = await this.userRepo.findByRelations(this.userId, "warnings");
2525

2626
if (!user) {
2727
user = await this.userRepo.createUser(this.ctx, this.userId);

0 commit comments

Comments
 (0)