Skip to content

Commit 3d6811c

Browse files
committed
fix: fix space id in outbox
1 parent 407931c commit 3d6811c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/persistence/src/outbox.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { json } from "./qb"
66
export class OutboxMapper {
77
static fromEvent(event: BaseEvent): InsertOutbox {
88
const user = getCurrentUserId()
9-
const spaceId = mustGetCurrentSpaceId()
9+
const spaceId = event.spaceId ?? mustGetCurrentSpaceId()
1010
return {
1111
id: event.id,
1212
name: event.name,

0 commit comments

Comments
 (0)