feat: redesign meal ordering system
This commit is contained in:
@@ -13,7 +13,7 @@ export const externalUsersLogin: Endpoint = {
|
||||
if (typeof req.json === 'function') {
|
||||
data = await req.json()
|
||||
}
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
// swallow error, data is already empty object
|
||||
}
|
||||
const { password, tenantSlug, tenantDomain, username } = data
|
||||
@@ -113,7 +113,7 @@ export const externalUsersLogin: Endpoint = {
|
||||
null,
|
||||
true,
|
||||
)
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
throw new APIError(
|
||||
'Unable to login with the provided username and password.',
|
||||
400,
|
||||
|
||||
Reference in New Issue
Block a user