Skip to content

Commit

Permalink
fix: remove value check that is now incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
mbystedt committed Jan 18, 2024
1 parent 33c66b9 commit 6df4dea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nr-objectstore-rotate",
"version": "1.1.7",
"version": "1.1.8",
"description": "Sidecar for rotating log files to objectstore",
"main": "index.js",
"scripts": {
Expand Down
14 changes: 0 additions & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import {
CRON_COMPRESS,
CRON_JANITOR,
CRON_ROTATE,
OBJECT_STORAGE_ACCESS_KEY,
OBJECT_STORAGE_BUCKET,
OBJECT_STORAGE_END_POINT,
} from './constants';
import { backup } from './cron/backup';
import { DatabaseService } from './services/database.service';
Expand All @@ -16,17 +13,6 @@ import { compress } from './cron/compress';

console.log('Starting...');

if (
!OBJECT_STORAGE_ACCESS_KEY ||
!OBJECT_STORAGE_END_POINT ||
!OBJECT_STORAGE_BUCKET
) {
console.error('Object storage url or access key not provided.');
throw new Error(
'OBJECT_STORAGE_END_POINT or OBJECT_STORAGE_ACCESS_ID not set',
);
}

async function main() {
const db = await DatabaseService.create();

Expand Down

0 comments on commit 6df4dea

Please sign in to comment.