mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-16 16:28:41 +00:00
image optimization and test fixes
This commit is contained in:
parent
1c6caf5531
commit
d58a059a47
32
.github/workflows/image.yml
vendored
32
.github/workflows/image.yml
vendored
|
|
@ -1,24 +1,10 @@
|
||||||
name: Compress images
|
name: Image optimization
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '**.jpg'
|
|
||||||
- '**.png'
|
|
||||||
- '**.webp'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '**.jpg'
|
|
||||||
- '**.png'
|
|
||||||
- '**.webp'
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: calibreapp/image-actions
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repo
|
|
||||||
uses: actions/checkout@main
|
|
||||||
|
|
||||||
- name: Compress Images
|
on: [push, pull_request]
|
||||||
uses: calibreapp/image-actions@main
|
|
||||||
with:
|
jobs:
|
||||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
general_image_workflow:
|
||||||
|
uses: Karaka-Management/Karaka/.github/workflows/image.yml@develop
|
||||||
|
secrets:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GH_PAT: ${{ secrets.GH_PAT }}
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ final class PurchaseBillMapper extends BillMapper
|
||||||
public static function getLastOrderDateByItemId(int $id) : ?\DateTimeImmutable
|
public static function getLastOrderDateByItemId(int $id) : ?\DateTimeImmutable
|
||||||
{
|
{
|
||||||
// @todo: only delivers/invoice/production (no offers ...)
|
// @todo: only delivers/invoice/production (no offers ...)
|
||||||
$query = new Builder(self::$db);
|
$query = new Builder(self::$db);
|
||||||
|
|
||||||
/** @var false|array $result */
|
/** @var false|array $result */
|
||||||
$result = $query->select('billing_bill_performance_date')
|
$result = $query->select('billing_bill_performance_date')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user