@plutocms/supabase 0.0.1-alpha.5 → 0.0.1-alpha.6

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plutocms/supabase",
3
3
  "type": "module",
4
- "version": "0.0.1-alpha.5",
4
+ "version": "0.0.1-alpha.6",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "build": "nuxt build",
@@ -30,15 +30,13 @@ export default defineEventHandler(async (event) => {
30
30
  const sql = postgres(connectionString)
31
31
 
32
32
  try {
33
- await sql.begin(async (sql) => {
34
- await sql.unsafe(schema)
35
- })
33
+ await sql.unsafe(schema)
36
34
 
37
35
  // Set the first_setup flag in the healthcheck table to false
38
36
  await sql`
39
37
  UPDATE healthcheck
40
- SET config_value = 'false'
41
- WHERE config_name = 'first_setup';
38
+ SET check_value = 'false'
39
+ WHERE check_name = 'first_setup';
42
40
  `
43
41
 
44
42
  return {