fix: gộp các nút của thành viên và guest vào một

This commit is contained in:
2026-06-27 15:37:00 +07:00
parent 5f49070a98
commit 400a3d098d
33 changed files with 1142 additions and 250 deletions
+11
View File
@@ -154,6 +154,17 @@ async function bootstrap() {
app.useStaticAssets(UPLOAD_ROOT, {
prefix: '/uploads/',
});
const downloadsDir = path.join(process.cwd(), 'public/downloads');
if (!fs.existsSync(downloadsDir)) {
fs.mkdirSync(downloadsDir, { recursive: true });
}
app.useStaticAssets(downloadsDir, {
prefix: '/downloads/',
setHeaders: (res) => {
res.set('Content-Type', 'application/vnd.android.package-archive');
res.set('Content-Disposition', 'attachment; filename="yotrip-latest.apk"');
}
});
const prisma = app.get(prisma_service_1.PrismaService);
startAutoCleanup(prisma);
await app.listen(3001);
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
Dummy APK content
+16 -1
View File
@@ -114,6 +114,21 @@ async function bootstrap() {
prefix: '/uploads/',
});
// Tự động tạo thư mục downloads nếu chưa tồn tại
const downloadsDir = path.join(process.cwd(), 'public/downloads');
if (!fs.existsSync(downloadsDir)) {
fs.mkdirSync(downloadsDir, { recursive: true });
}
// Khai báo thư mục lưu trữ APK tải về
app.useStaticAssets(downloadsDir, {
prefix: '/downloads/',
setHeaders: (res) => {
res.set('Content-Type', 'application/vnd.android.package-archive');
res.set('Content-Disposition', 'attachment; filename="yotrip-latest.apk"');
}
});
const prisma = app.get(PrismaService);
startAutoCleanup(prisma);
@@ -2463,7 +2478,7 @@ class UserController {
return this.prisma.user.update({
where: { id },
data,
select: { id: true, email: true, name: true, isAdmin: true, isBlocked: true }
select: { id: true, email: true, name: true, isAdmin: true, isBlocked: true, avatar: true, phone: true, address: true }
});
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 844 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 662 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 KiB