Commit 26677bd5 authored by nanahira's avatar nanahira

fix

parent 3e6f23a4
Pipeline #19541 passed with stages
in 2 minutes and 20 seconds
......@@ -28,7 +28,7 @@ export class MatchService extends CrudService(Match, {
);
}
getMatches(dto: Partial<Participant>, user: MycardUser) {
getMatches(dto: Partial<Match>, user: MycardUser) {
return this.findAll(dto, (qb) =>
Tournament.extraQueryForUser(user, qb, 'tournament'),
);
......
......@@ -133,6 +133,13 @@ export class Tournament extends DescBase {
this.createdAt = new Date();
}
override isValidInCreate() {
if (!this.getRuleHandler()) {
return '该规则目前不受支持。';
}
return;
}
applyQuery(qb: SelectQueryBuilder<Tournament>, entityName: string) {
super.applyQuery(qb, entityName);
applyQueryProperty(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment