webadmin端增加版本号和部署功能
This commit is contained in:
@@ -65,4 +65,20 @@ export class AdminDashboardService {
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
async getLatestVersion() {
|
||||
const row = await this.prisma.systemVersion.findFirst({
|
||||
orderBy: { deployedAt: 'desc' },
|
||||
});
|
||||
if (!row) return null;
|
||||
return {
|
||||
id: row.id.toString(),
|
||||
gitTag: row.gitTag,
|
||||
commitId: row.commitId,
|
||||
commitMessage: row.commitMessage,
|
||||
branch: row.branch,
|
||||
deployedBy: row.deployedBy,
|
||||
deployedAt: row.deployedAt.toISOString(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user