mirror of
https://example.com
synced 2024-11-22 11:26:38 +09:00
fix: get latest version from the forked repo (close #54)
This commit is contained in:
parent
33466420ba
commit
d0b8984d0e
2 changed files with 5 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
"private": true,
|
||||
"type": "module",
|
||||
"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",
|
||||
"migrate": "pnpm run migrate:typeorm && pnpm run migrate:cargo",
|
||||
"migrate:typeorm": "typeorm migration:run -d ormconfig.js",
|
||||
|
|
|
@ -15,10 +15,12 @@ export const paramDef = {
|
|||
|
||||
export default define(meta, paramDef, async () => {
|
||||
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((data) => {
|
||||
tag_name = data[0].tag_name;
|
||||
tag_name = data[0].name;
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue