We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e4a2ec + 1fbad56 commit 110bc8fCopy full SHA for 110bc8f
packages/shared/src/db/queries.ts
@@ -134,13 +134,10 @@ export interface GetGroupsOptions {
134
export const insertSettings = createWriteQuery(
135
'insertSettings',
136
async (settings: Settings, ctx: QueryCtx) => {
137
- return ctx.db
138
- .insert($settings)
139
- .values(settings)
140
- .onConflictDoUpdate({
141
- target: $settings.userId,
142
- set: conflictUpdateSetAll($settings),
143
- });
+ return ctx.db.insert($settings).values(settings).onConflictDoUpdate({
+ target: $settings.userId,
+ set: settings,
+ });
144
},
145
['settings']
146
);
0 commit comments