Skip to content

Commit

Permalink
make messages optional for deployed version
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmacartney committed Dec 8, 2023
1 parent 2dde9ff commit adc90ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convex/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineSchema({
messageUuid: v.string(),
author: playerId,
text: v.string(),
worldId: v.id('worlds'),
worldId: v.optional(v.id('worlds')),
})
.index('conversationId', ['worldId', 'conversationId'])
.index('messageUuid', ['conversationId', 'messageUuid']),
Expand Down

0 comments on commit adc90ac

Please sign in to comment.