Skip to content

Commit

Permalink
migration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD committed Jan 31, 2025
1 parent 2cf844d commit dc428b5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions apps/shelve/app/layouts/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ const routeTitle = computed(() => {
</div>
</div>
<CliInstall />
<UAlert
icon="lucide:alert-triangle"
title="Migration to NuxtHub"
variant="soft"
color="warning"
description="The app has been moved to NuxtHub, and the database has been migrated to. So you may see some bugs and missing features, during the migration process, please report them on GitHub."
class="rounded-none"
/>
<div class="flex h-full flex-col gap-4 overflow-y-auto px-3 py-6 sm:px-6">
<slot />
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/shelve/server/middleware/2.serverAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function getUserByAuthToken(authToken: string, event: H3Event): Promise<Us

await useDrizzle().update(tables.tokens)
.set({
updatedAt: new Date()
updatedAt: new Date().toISOString()
})
.where(eq(tables.tokens.id, foundToken.id))
return user
Expand Down
4 changes: 2 additions & 2 deletions apps/shelve/server/services/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ export class GithubService {
}
}

async getUserApps(userId: number): Promise<GithubApp[]> {
return await useDrizzle().query.githubApp.findMany({
getUserApps(userId: number): Promise<GithubApp[]> {
return useDrizzle().query.githubApp.findMany({
where: eq(tables.githubApp.userId, userId)
})
}
Expand Down

0 comments on commit dc428b5

Please sign in to comment.