.onConflictDoUpdate({
target: [settingInfo.userId, settingInfo.provider],
set: {
apiKey: newSettingInfo.apiKey,
},
where: sql`${settingInfo.apiKey} != ${newSettingInfo.apiKey}`,
})
.onConflictDoUpdate({
target: [settingInfo.userId, settingInfo.provider],
set: {
apiKey: newSettingInfo.apiKey,
},
where: sql`${settingInfo.apiKey} != ${newSettingInfo.apiKey}`,
})