Skip to content

Commit

Permalink
Merge pull request #18 from watchdogcloud/dev
Browse files Browse the repository at this point in the history
chore(ci): fixes context of docker buildkit
  • Loading branch information
zakhaev26 authored Jul 17, 2024
2 parents dafeec5 + 6efab35 commit 93db24f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ghcr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
context: ./docker
dockerfile: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
2 changes: 1 addition & 1 deletion src/processors/insertIntoDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const insertIntoDatabase = async (payload: EachMessagePayload) => {
};

fs.writeFileSync('met.json', JSON.stringify(ids));
await app.service('recv-data')._create(ids);
await app.service('v1/recv-data')._create(ids);
} catch (error: any) {
console.error('Error inserting into database:', error.message, error.stack);
throw new Error(error);
Expand Down
6 changes: 3 additions & 3 deletions src/services/recv-data/recv-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import hooks from './recv-data.hooks';
// Add this service to the service type index
declare module '../../declarations' {
interface ServiceTypes {
'recv-data': RecvData & ServiceAddons<any>;
'v1/recv-data': RecvData & ServiceAddons<any>;
}
}

Expand All @@ -20,10 +20,10 @@ export default function (app: Application): void {
};

// Initialize our service with any options it requires
app.use('/recv-data', new RecvData(options, app));
app.use('/v1/recv-data', new RecvData(options, app));

// Get our initialized service so that we can register hooks
const service = app.service('recv-data');
const service = app.service('v1/recv-data');

service.hooks(hooks);
}

0 comments on commit 93db24f

Please sign in to comment.