Fix the plugin stuff

This commit is contained in:
MotorTruck1221 2024-11-04 22:21:08 -07:00
parent fc1a07b129
commit bf52d776ff
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4
2 changed files with 2 additions and 7 deletions

View file

@ -17,8 +17,3 @@ port = 5432
port = 8080
wisp = true
logging = true # Disable for the tons & tons of logs to go away (useful for debugging but otherwise eh)
[server.rammerhead] # Don't touch this section unless you KNOW what you are doing
reverseproxy = true
localstorage_sync = true
http2 = true

View file

@ -4,7 +4,7 @@ import { Settings, settings } from "@utils/settings/index";
import Parent from "./Parent.svelte";
async function getItem(item) {
try {
const response = await fetch(`/api/packages/${item.name.toLowerCase()}`);
const response = await fetch(`/api/packages/${item.name}`);
const data = await response.json();
return {
...data,
@ -20,7 +20,7 @@ async function getAssets() {
const promises = items.map(getItem);
const dataArray = await Promise.all(promises);
let accumulatedData = dataArray.filter((data) => data !== null);
accumulatedData = accumulatedData.filter(({ remove }) => remove === true);
accumulatedData = accumulatedData.filter(({ remove }) => remove !== true);
console.log(JSON.stringify(accumulatedData));
return accumulatedData;
}