We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00b5e6 commit bd01a42Copy full SHA for bd01a42
1 file changed
src/service/command/warn.ts
@@ -21,7 +21,7 @@ export class WarnService {
21
* Adds a warning to a user.
22
*/
23
async warn(reason: string = "unknown") {
24
- let user = await this.userRepo.findByRelations(this.userId, "warning");
+ let user = await this.userRepo.findByRelations(this.userId, "warnings");
25
26
if (!user) {
27
user = await this.userRepo.createUser(this.ctx, this.userId);
0 commit comments