Merge branch 'dev' into feature/api-integration

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2023-06-23 23:09:22 +05:30 committed by GitHub
commit 9e41197c6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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' }));
};