build config changes
All checks were successful
Galvanic Corrosion Cross-Compile / build (push) Successful in 1m50s
All checks were successful
Galvanic Corrosion Cross-Compile / build (push) Successful in 1m50s
* Commit hash shipped with builds
* Post & pre-build events
* Objective fixes
* Orientation challenge filler
* Custom Rooms base
- Currently cannot save rooms (CDN not set up)
* Moved root path to path.ts
* Room cloning
* Rewrote instances - the whole thing
* Relationships are still untested
* Charades Words
* AG Room fetch
* Private room matchmaking
* Socket fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* Galvanic Corrosion - Rec Room custom server for communities.
|
||||
<https://gitea.proxnet.dev/zombieb/galvanic-corrosion>
|
||||
Copyright (C) 2025 @zombieb (Discord / proxnet Gitea)
|
||||
Copyright (C) 2025 @zombieb (Discord / proxnet Gitea)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
@@ -15,14 +15,17 @@ GNU Affero General Public License for more details.
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
import { APIUtils } from "../../apiutils.ts";
|
||||
import { APIUtils, NoBody } from "../../apiutils.ts";
|
||||
import express from "express";
|
||||
import UnifiedProfile, { Profile } from "../../data/profiles.ts";
|
||||
import { z } from "zod";
|
||||
import { AuthType } from "../../data/users.ts";
|
||||
import Logging from "@proxnet/undead-logging";
|
||||
|
||||
export const route = APIUtils.createRouter("/account");
|
||||
|
||||
const log = new Logging("AccountRoute");
|
||||
|
||||
const CreateAccountRequestBodySchema = z.object({
|
||||
platform: z.string(),
|
||||
platformId: z.string(),
|
||||
@@ -70,11 +73,9 @@ route.router.get("/bulk",
|
||||
|
||||
} else if (typeof rq.query.id == "string") {
|
||||
|
||||
const id = parseInt(rq.query.id, 10);
|
||||
const id = parseInt(rq.query.id);
|
||||
if (isNaN(id)) {
|
||||
rs.json(
|
||||
APIUtils.genericResponseFormat(true, "Query data error"),
|
||||
);
|
||||
rs.json(APIUtils.genericResponseFormat(true, "Query data error"));
|
||||
return;
|
||||
} else {
|
||||
rs.json([await Profile.getExportAccount(id)].filter((val) => val !== null));
|
||||
@@ -116,7 +117,7 @@ route.router.put("/me/displayname",
|
||||
express.urlencoded({ extended: true }),
|
||||
APIUtils.validateRequestBody(DisplayNameUpdateSchema),
|
||||
|
||||
(rq: express.Request<{}, {}, DisplayNameUpdate>, rs: express.Response, nxt: express.NextFunction) => {
|
||||
(rq: express.Request<NoBody, NoBody, DisplayNameUpdate>, rs: express.Response, nxt: express.NextFunction) => {
|
||||
rs.locals.profile.setDisplayName(rq.body.displayName);
|
||||
nxt();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user