Fix credentials

This commit is contained in:
Owen
2025-12-05 21:28:41 -05:00
parent d1c7832e40
commit c233fc564e
7 changed files with 30 additions and 37 deletions

View File

@@ -13,7 +13,7 @@
import { Request, Response, NextFunction } from "express";
import { z } from "zod";
import { db, olms } from "@server/db";
import { db, Olm, olms } from "@server/db";
import { clients } from "@server/db";
import response from "@server/lib/response";
import HttpCode from "@server/types/HttpCode";
@@ -146,7 +146,9 @@ export async function reGenerateClientSecret(
});
return response(res, {
data: existingOlms,
data: {
olmId: existingOlms[0].olmId,
},
success: true,
error: false,
message: "Credentials regenerated successfully",