style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-04-22 06:58:24 +00:00
parent a963cf472c
commit c1e7c6c689
2 changed files with 14 additions and 11 deletions

View file

@ -34,7 +34,7 @@ export class Assignment {
@OneToMany({ @OneToMany({
entity: () => Group, entity: () => Group,
mappedBy: 'assignment', mappedBy: 'assignment',
cascade: [Cascade.ALL] cascade: [Cascade.ALL],
}) })
groups: Collection<Group> = new Collection<Group>(this); groups: Collection<Group> = new Collection<Group>(this);
} }

View file

@ -50,7 +50,7 @@
}), }),
); );
return result.flat().filter(a => !deletedAssignments.value.has(a.id)); return result.flat().filter((a) => !deletedAssignments.value.has(a.id));
}, []); }, []);
async function goToCreateAssignment(): Promise<void> { async function goToCreateAssignment(): Promise<void> {
@ -64,11 +64,14 @@
const { mutate } = useDeleteAssignmentMutation(); const { mutate } = useDeleteAssignmentMutation();
async function goToDeleteAssignment(num: number, clsId: string): Promise<void> { async function goToDeleteAssignment(num: number, clsId: string): Promise<void> {
mutate({ cid: clsId, an: num }, { mutate(
{ cid: clsId, an: num },
{
onSuccess: () => { onSuccess: () => {
deletedAssignments.value.add(num); deletedAssignments.value.add(num);
}, },
}); },
);
} }
onMounted(async () => { onMounted(async () => {