mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 21:14:35 -04:00
Fixes for mime types
This commit is contained in:
parent
fe2448196f
commit
7fb41b7d60
@ -221,8 +221,8 @@ class CompanyImport implements ShouldQueue
|
|||||||
private function unzipFile()
|
private function unzipFile()
|
||||||
{
|
{
|
||||||
|
|
||||||
if(mime_content_type(Storage::path($this->file_location)) == 'text/plain')
|
// if(mime_content_type(Storage::path($this->file_location)) == 'text/plain')
|
||||||
return Storage::path($this->file_location);
|
// return Storage::path($this->file_location);
|
||||||
|
|
||||||
$path = TempFile::filePath(Storage::get($this->file_location), basename($this->file_location));
|
$path = TempFile::filePath(Storage::get($this->file_location), basename($this->file_location));
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class ClientService
|
|||||||
return Number::roundValue($credits->sum('balance'), $this->client->currency()->precision);
|
return Number::roundValue($credits->sum('balance'), $this->client->currency()->precision);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCredits() :Collection
|
public function getCredits()
|
||||||
{
|
{
|
||||||
return $this->client->credits()
|
return $this->client->credits()
|
||||||
->where('is_deleted', false)
|
->where('is_deleted', false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user