fix: 修复health自动生成的版本不正确的bug

pull/64/head
moonrailgun 2 years ago
parent 5076e2eab2
commit f3b6303342

@ -11,8 +11,6 @@ import {
showErrorToasts,
t,
fetchGlobalClientConfig,
request,
isValidStr,
isDevelopment,
setErrorHook,
showToasts,

@ -1,6 +1,8 @@
import moment from 'moment';
import type { PureContext, PureServiceSchema } from 'tailchat-server-sdk';
const now = moment().format('YYYYMMDDHHmm');
/**
* action
*
@ -20,8 +22,7 @@ export const TcHealth = (): Partial<PureServiceSchema> => {
services: services
.filter((s) => s.available === true)
.map((s) => s.fullName),
version:
process.env.VERSION || `nightly-${moment().format('YYYYMMDDHHmm')}`,
version: process.env.VERSION || `nightly-${now}`,
};
},
},

Loading…
Cancel
Save