Skip to content

Commit b4efcf1

Browse files
committed
Merge branch 'api'
# Conflicts: # composer.lock
2 parents 88ddab6 + 57d3fb8 commit b4efcf1

4 files changed

Lines changed: 724 additions & 1102 deletions

File tree

.docker/develop/php/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ RUN apk update && apk add --no-cache \
1414
shadow \
1515
bash \
1616
tzdata \
17-
nano \
18-
nodejs npm
17+
nano
1918

2019
RUN pecl install redis \
2120
&& docker-php-ext-enable redis
@@ -24,9 +23,6 @@ RUN docker-php-ext-install zip pdo_mysql exif opcache pcntl
2423

2524
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quit
2625

27-
RUN npm --global install yarn \
28-
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
29-
3026
ENV TZ=Asia/Baku
3127

3228
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

.github/workflows/make.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
username: hose1021
2626
password: ${{ github.token }}
2727

28-
- name: Docker pull
29-
run: make docker-pull
30-
3128
- name: Docker build
3229
run: make docker-build
3330

app/Http/Controllers/Api/ArticleHubController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(Request $request, int $day = 1, int $week = 7, int $
4242
}
4343

4444
/**
45-
* @param int $id
45+
* @param string $id
4646
* @return ArticlesResource
4747
*/
4848
public function articles(string $id): ArticlesResource
@@ -55,7 +55,7 @@ function ($query) use ($id) {
5555
$query->where('taggables.hub_id', '=', $id);
5656
}
5757
)
58-
->withcount('views', )
58+
->withcount('views')
5959
->orderBy('created_at', 'DESC')
6060
->where('created_at', '>=', Carbon::now()->subDays(self::$count)->startOfDay())
6161
->take(50)->paginate(10)

0 commit comments

Comments
 (0)