Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Sep 18, 2023
2 parents 2a1a62f + 7572153 commit 1ca0be9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ select_permissions:
- role: anonymous
permission:
columns:
- bio
- birthdate
- email
- gender
- id
- nickname
- picture
Expand Down
13 changes: 13 additions & 0 deletions hasura/metadata/query_collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -794,3 +794,16 @@
}
}
}
- name: Public - Query User
query: |
query QueryUser ($user_id: bpchar = "") {
authorizer_users(where: {id:{_eq:$user_id}}) {
id
email
nickname
birthdate
bio
picture
gender
}
}
9 changes: 9 additions & 0 deletions hasura/metadata/rest_endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@
- GET
name: Public - Get trending manga
url: public/trending
- comment: ""
definition:
query:
collection_name: allowed-queries
query_name: Public - Query User
methods:
- GET
name: Public - Query User
url: public/users/:user_id
- comment: ""
definition:
query:
Expand Down
4 changes: 3 additions & 1 deletion src/task/task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export class TasksService {
const response = await this.runReport();
const env = this.configService.get<string>('app.env');

const subdomain_pattern = env !== '' ? `${env}\.` : '';
const subdomain_pattern = ['dev', 'staging'].includes(env)
? `${env}\.`
: '';

const regex = new RegExp(
`https://${subdomain_pattern}punkga\.me(\/[A-Za-z]+)?\/comic\/[0-9]+\/chapter\/[0-9]+`,
Expand Down

0 comments on commit 1ca0be9

Please sign in to comment.