fix: fix not sending whole ephemeral update
This commit is contained in:
parent
bff8fdef77
commit
51f3656554
@ -382,12 +382,7 @@ export async function startApi() {
|
|||||||
pubsub.on('update', updateHandler);
|
pubsub.on('update', updateHandler);
|
||||||
const updateEphemeralHandler = (accountId: string, update: { type: 'activity', id: string, active: boolean, activeAt: number, thinking: boolean }) => {
|
const updateEphemeralHandler = (accountId: string, update: { type: 'activity', id: string, active: boolean, activeAt: number, thinking: boolean }) => {
|
||||||
if (accountId === userId) {
|
if (accountId === userId) {
|
||||||
socket.emit('ephemeral', {
|
socket.emit('ephemeral', update);
|
||||||
type: update.type,
|
|
||||||
id: update.id,
|
|
||||||
active: update.active,
|
|
||||||
activeAt: update.activeAt
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
pubsub.on('update-ephemeral', updateEphemeralHandler);
|
pubsub.on('update-ephemeral', updateEphemeralHandler);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user