fix
This commit is contained in:
parent
138418ca73
commit
6c78dc838a
|
|
@ -53,7 +53,8 @@ export const _ = {
|
||||||
await Bun.write(dir(`${g.datadir}/db-ver`), Date.now().toString());
|
await Bun.write(dir(`${g.datadir}/db-ver`), Date.now().toString());
|
||||||
file = Bun.file(dir(`${g.datadir}/db-ver`));
|
file = Bun.file(dir(`${g.datadir}/db-ver`));
|
||||||
}
|
}
|
||||||
return await file.text();
|
const res = await file.text();
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "db-sync": {
|
case "db-sync": {
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,9 @@ export const serveAPI = async (url: URL, req: Request) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (finalResponse) {
|
if (finalResponse) {
|
||||||
return createResponse(current.res, finalResponse);
|
return createResponse(finalResponse, {
|
||||||
|
res: current.res,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return current.res;
|
return current.res;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue