Merge branch 'feature/api-integration' of github.com:BRAVO68WEB/shx into feature/api-integration

This commit is contained in:
Chirag Bhalotia 2023-06-24 00:57:36 +05:30
commit a10de07f1c
No known key found for this signature in database
GPG Key ID: F7F1F1FBFFD40427
1 changed files with 6 additions and 4 deletions

View File

@ -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' }));
};