spine-framework 0.3.52 → 0.3.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -217,7 +217,7 @@ async function seedApp(appDir: string, appSlug: string) {
|
|
|
217
217
|
for (const type of types) {
|
|
218
218
|
const { error } = await db
|
|
219
219
|
.from('types')
|
|
220
|
-
.upsert({ ...type, app_id: appId }, { onConflict: 'slug' })
|
|
220
|
+
.upsert({ ...type, app_id: appId }, { onConflict: 'app_id,kind,slug' })
|
|
221
221
|
if (error) console.warn(` ⚠ type ${type.slug}: ${error.message}`)
|
|
222
222
|
}
|
|
223
223
|
console.log(` ✓ Types seeded`)
|
|
@@ -231,7 +231,7 @@ async function seedApp(appDir: string, appSlug: string) {
|
|
|
231
231
|
for (const role of roles) {
|
|
232
232
|
const { error } = await db
|
|
233
233
|
.from('roles')
|
|
234
|
-
.upsert({ ...role, app_id: appId }, { onConflict: 'slug' })
|
|
234
|
+
.upsert({ ...role, app_id: appId }, { onConflict: 'app_id,slug' })
|
|
235
235
|
if (error) console.warn(` ⚠ role ${role.slug}: ${error.message}`)
|
|
236
236
|
}
|
|
237
237
|
console.log(` ✓ Roles seeded`)
|