feat: Send version with update request

This commit is contained in:
Andras Bacsai 2022-03-02 13:38:45 +01:00
parent 4dcc76d366
commit 7c62eb5bd6

View File

@ -10,7 +10,9 @@ export const get: RequestHandler = async (request) => {
try {
const currentVersion = version;
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();
const latestVersion =
request.url.hostname === 'staging.coolify.io'