mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-05 20:32:29 +00:00
fix: remove WorkerLogFields reference
This commit is contained in:
parent
846ff5dc8d
commit
992b905b5d
@ -14,12 +14,12 @@ import {
|
|||||||
type CreateInstanceResult,
|
type CreateInstanceResult,
|
||||||
type InstanceFields,
|
type InstanceFields,
|
||||||
type InstanceId,
|
type InstanceId,
|
||||||
|
type InstanceLogFields,
|
||||||
type SaveSecretsPayload,
|
type SaveSecretsPayload,
|
||||||
type SaveSecretsResult,
|
type SaveSecretsResult,
|
||||||
type SaveVersionPayload,
|
type SaveVersionPayload,
|
||||||
type SaveVersionResult,
|
type SaveVersionResult,
|
||||||
type UserFields,
|
type UserFields
|
||||||
type WorkerLogFields
|
|
||||||
} from '@pockethost/common'
|
} from '@pockethost/common'
|
||||||
import { keys, map } from '@s-libs/micro-dash'
|
import { keys, map } from '@s-libs/micro-dash'
|
||||||
import PocketBase, {
|
import PocketBase, {
|
||||||
@ -235,7 +235,7 @@ export const createPocketbaseClient = (config: PocketbaseClientConfig) => {
|
|||||||
|
|
||||||
const watchInstanceLog = (
|
const watchInstanceLog = (
|
||||||
instanceId: InstanceId,
|
instanceId: InstanceId,
|
||||||
update: (log: WorkerLogFields) => void,
|
update: (log: InstanceLogFields) => void,
|
||||||
nInitial = 100
|
nInitial = 100
|
||||||
): (() => void) => {
|
): (() => void) => {
|
||||||
const auth = client.authStore.exportToCookie()
|
const auth = client.authStore.exportToCookie()
|
||||||
@ -257,7 +257,7 @@ export const createPocketbaseClient = (config: PocketbaseClientConfig) => {
|
|||||||
onmessage: (event) => {
|
onmessage: (event) => {
|
||||||
// dbg(`Got stream event`, event)
|
// dbg(`Got stream event`, event)
|
||||||
const {} = event
|
const {} = event
|
||||||
const log = JSON.parse(event.data) as WorkerLogFields
|
const log = JSON.parse(event.data) as InstanceLogFields
|
||||||
// dbg(`Log is`, log)
|
// dbg(`Log is`, log)
|
||||||
update(log)
|
update(log)
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user