ignore: cloud
This commit is contained in:
@@ -32,7 +32,7 @@ export const getActor = query(async (): Promise<Actor.Info> => {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Object.keys(auth.data.account).length > 0) {
|
if (Object.keys(auth.data.account ?? {}).length > 0) {
|
||||||
const current = Object.values(auth.data.account)[0]
|
const current = Object.values(auth.data.account)[0]
|
||||||
await auth.update(val => ({
|
await auth.update(val => ({
|
||||||
...val,
|
...val,
|
||||||
@@ -96,10 +96,9 @@ export interface AuthSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function useAuthSession() {
|
export function useAuthSession() {
|
||||||
|
|
||||||
return useSession<AuthSession>({
|
return useSession<AuthSession>({
|
||||||
password: "0".repeat(32),
|
password: "0".repeat(32),
|
||||||
name: "auth"
|
name: "auth",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Resource } from "sst"
|
|||||||
export * from "drizzle-orm"
|
export * from "drizzle-orm"
|
||||||
import postgres from "postgres"
|
import postgres from "postgres"
|
||||||
|
|
||||||
const createClient = memo(() => {
|
const createClient = () => {
|
||||||
const client = postgres({
|
const client = postgres({
|
||||||
idle_timeout: 30000,
|
idle_timeout: 30000,
|
||||||
connect_timeout: 30000,
|
connect_timeout: 30000,
|
||||||
@@ -17,9 +17,8 @@ const createClient = memo(() => {
|
|||||||
},
|
},
|
||||||
max: 1,
|
max: 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
return drizzle(client, {})
|
return drizzle(client, {})
|
||||||
})
|
}
|
||||||
|
|
||||||
import { PgTransaction, type PgTransactionConfig } from "drizzle-orm/pg-core"
|
import { PgTransaction, type PgTransactionConfig } from "drizzle-orm/pg-core"
|
||||||
import type { ExtractTablesWithRelations } from "drizzle-orm"
|
import type { ExtractTablesWithRelations } from "drizzle-orm"
|
||||||
|
|||||||
Reference in New Issue
Block a user