1
0
Fork 1
mirror of https://example.com synced 2024-11-22 23:36:38 +09:00

fix: get latest version from the forked repo (close #54)

This commit is contained in:
naskya 2023-09-21 17:19:20 +09:00
parent 33466420ba
commit d0b8984d0e
Signed by: naskya
GPG key ID: 164DFF24E2D40139
2 changed files with 5 additions and 3 deletions

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "pnpm node ./built/index.js", "start": "pnpm node --dns-result-order=ipv4first ./built/index.js",
"start:test": "NODE_ENV=test pnpm node ./built/index.js", "start:test": "NODE_ENV=test pnpm node ./built/index.js",
"migrate": "pnpm run migrate:typeorm && pnpm run migrate:cargo", "migrate": "pnpm run migrate:typeorm && pnpm run migrate:cargo",
"migrate:typeorm": "typeorm migration:run -d ormconfig.js", "migrate:typeorm": "typeorm migration:run -d ormconfig.js",

View file

@ -15,10 +15,12 @@ export const paramDef = {
export default define(meta, paramDef, async () => { export default define(meta, paramDef, async () => {
let tag_name; let tag_name;
await fetch("https://git.joinfirefish.org/api/v4/projects/7/releases") await fetch(
"https://code.naskya.net/api/v1/repos/naskya/firefish/tags?page=1&limit=1",
)
.then((response) => response.json()) .then((response) => response.json())
.then((data) => { .then((data) => {
tag_name = data[0].tag_name; tag_name = data[0].name;
}); });
return { return {