feat: Send version with update request
This commit is contained in:
parent
4dcc76d366
commit
7c62eb5bd6
@ -10,7 +10,9 @@ export const get: RequestHandler = async (request) => {
|
|||||||
try {
|
try {
|
||||||
const currentVersion = version;
|
const currentVersion = version;
|
||||||
const versions = await got
|
const versions = await got
|
||||||
.get(`https://get.coollabs.io/versions.json?appId=${process.env['COOLIFY_APP_ID']}`)
|
.get(
|
||||||
|
`https://get.coollabs.io/versions.json?appId=${process.env['COOLIFY_APP_ID']}&version=${currentVersion}`
|
||||||
|
)
|
||||||
.json();
|
.json();
|
||||||
const latestVersion =
|
const latestVersion =
|
||||||
request.url.hostname === 'staging.coolify.io'
|
request.url.hostname === 'staging.coolify.io'
|
||||||
|
Loading…
Reference in New Issue
Block a user