DevClad-Inc / devclad

Invalid async keyword JS-0376
Anti-pattern
Minor
a year ago2 years old
Async arrow function 'handleBulkMail' has no 'await' expression
 62		}
 63	};
 64
 65	const handleBulkMail = async (type: EmailType) => { 66		if (data !== null) {
 67			const users = data?.data.users as ManagedUser[];
 68			if (type === 'reminder') {
Async arrow function 'sendEmail' has no 'await' expression
 17	devMode: boolean,
 18	res: VercelResponse,
 19	emailT: EmailType
 20) => { 21	const { firstName, email } = req.body;
 22	let templateId;
 23	switch (emailT) {
Async arrow function 'getUsers' has no 'await' expression
22	return null;
23};
24
25export const getUsers = async (token: string, filter?: string) => {26	let url;
27	if (filter) {
28		url = `${API_URL}/internal/users?status=${filter}`;
Async function 'verifyToken' has no 'await' expression
160	return null;
161}
162
163export async function verifyToken(token: string, queryClient?: QueryClient): Promise<boolean> {164	const url = `${API_URL}/auth/token/verify/`;
165	return axios({
166		method: 'POST',
Async function 'SignUp' has no 'await' expression
218	return null;
219}
220
221export async function SignUp(user: NewUser) {222	return axios
223		.post(`${API_URL}/auth/registration/`, {
224			first_name: user.firstName,