Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
isnolan committed May 6, 2024
1 parent 47bc1b6 commit 1bd6377
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 30,066 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
paths:
- 'apps/bodhi-service/src/**'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion apps/bodhi-service/src/modules/files/files.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class FilesService {
await this.storage.bucket(bucket).file(filePath).save(file.buffer);

// file extract
if (purpose === 'file-extract') {
if (mimetype === 'application/pdf' && purpose === 'file-extract') {
this.queue.add('file-extract', { id: f.id, mimeType: mimetype, folderPath, filePath });
}

Expand Down
Loading

0 comments on commit 1bd6377

Please sign in to comment.