mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
do not load array buffer into memory
This commit is contained in:
committed by
Aiden McClelland
parent
f29c7ba4f2
commit
fd166c4433
@@ -1,12 +1,12 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { pauseFor, Log } from '@start9labs/shared'
|
||||
import { Log, pauseFor } from '@start9labs/shared'
|
||||
import { ApiService } from './embassy-api.service'
|
||||
import {
|
||||
PatchOp,
|
||||
Update,
|
||||
Operation,
|
||||
RemoveOperation,
|
||||
PatchOp,
|
||||
pathFromArray,
|
||||
RemoveOperation,
|
||||
Update,
|
||||
} from 'patch-db-client'
|
||||
import {
|
||||
DataModel,
|
||||
@@ -87,7 +87,7 @@ export class MockApiService extends ApiService {
|
||||
return markdown
|
||||
}
|
||||
|
||||
async uploadPackage(guid: string, body: ArrayBuffer): Promise<string> {
|
||||
async uploadPackage(guid: string, body: Blob): Promise<string> {
|
||||
await pauseFor(2000)
|
||||
return 'success'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user