Skip to content

Commit

Permalink
fix: fix space id in outbox
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Aug 23, 2024
1 parent 407931c commit 3d6811c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/persistence/src/outbox.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { json } from "./qb"
export class OutboxMapper {
static fromEvent(event: BaseEvent): InsertOutbox {
const user = getCurrentUserId()
const spaceId = mustGetCurrentSpaceId()
const spaceId = event.spaceId ?? mustGetCurrentSpaceId()
return {
id: event.id,
name: event.name,
Expand Down

0 comments on commit 3d6811c

Please sign in to comment.