Skip to content

Commit

Permalink
Try to fix Identify
Browse files Browse the repository at this point in the history
Try to fix identify

Try to fix Identify
  • Loading branch information
ammsalme committed Sep 6, 2024
1 parent bcc0ed6 commit 316b113
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ export default async ({
try {
const result = await method(params);
logger.debug(`Result: ${JSON.stringify(result)}`);
if (!result || result.length === 0) {
throw error('Empty result!');
}
logger.debug(`We got result ${result.length}`);
//if (!result || result.length === 0) {
// throw error('Empty result!');
//}
//logger.debug(`We got result ${result.length}`);
await closeConnection();
return resolve(result);
} catch (err) {
Expand Down Expand Up @@ -311,7 +311,7 @@ export default async ({
await params.connection.close({drop: true});
return resolve();
} catch (err) {
logger.debug(err);
//logger.debug(err);
if (isExpectedOracleError(err) === false) {
return reject(err);
}
Expand Down
1 change: 1 addition & 0 deletions src/app/middleware/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default ({oaiIdentifierPrefix, supportEmail}) => {
}

function generateIdentifyResponse({requestUrl, query, repoName, earliestTimestamp}) {
logger.debug(`generateIdentifyResponse`);
return generateResponse({requestUrl, query, payload: {
Identify: {
repositoryName: [repoName],
Expand Down

0 comments on commit 316b113

Please sign in to comment.