mirror of https://github.com/BRAVO68WEB/shx.git
Merge branch 'feature/api-integration' of github.com:BRAVO68WEB/shx into feature/api-integration
This commit is contained in:
commit
a10de07f1c
|
@ -60,10 +60,12 @@ export default class APIKeyController
|
|||
return next(error);
|
||||
}
|
||||
if (delKey === 0)
|
||||
throw new CustomError({
|
||||
message: 'API Key not found',
|
||||
statusCode: 404,
|
||||
});
|
||||
return next(
|
||||
new CustomError({
|
||||
message: 'API Key not found',
|
||||
statusCode: 404,
|
||||
})
|
||||
);
|
||||
return res.status(200).json(makeResponse({ message: 'API Key revoked' }));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue