style: fix linting issues met Prettier
This commit is contained in:
parent
8e2643f596
commit
d88add8351
9 changed files with 48 additions and 52 deletions
|
@ -1,13 +1,7 @@
|
|||
import {Request, Response} from 'express';
|
||||
import {requireFields} from './error-helper';
|
||||
import {
|
||||
createInvitation,
|
||||
deleteInvitation,
|
||||
getAllInvitations,
|
||||
getInvitation,
|
||||
updateInvitation
|
||||
} from '../services/teacher-invitations';
|
||||
import {TeacherInvitationData} from '@dwengo-1/common/interfaces/teacher-invitation';
|
||||
import { Request, Response } from 'express';
|
||||
import { requireFields } from './error-helper';
|
||||
import { createInvitation, deleteInvitation, getAllInvitations, getInvitation, updateInvitation } from '../services/teacher-invitations';
|
||||
import { TeacherInvitationData } from '@dwengo-1/common/interfaces/teacher-invitation';
|
||||
|
||||
export async function getAllInvitationsHandler(req: Request, res: Response): Promise<void> {
|
||||
const username = req.params.username;
|
||||
|
@ -62,7 +56,9 @@ export async function deleteInvitationHandler(req: Request, res: Response): Prom
|
|||
requireFields({ sender, receiver, classId });
|
||||
|
||||
const data: TeacherInvitationData = {
|
||||
sender, receiver, class: classId
|
||||
sender,
|
||||
receiver,
|
||||
class: classId,
|
||||
};
|
||||
const invitation = await deleteInvitation(data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue