mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-28 07:46:36 +00:00
remove org settings json
This commit is contained in:
@@ -17,7 +17,7 @@ const getOrgSchema = z
|
||||
.strict();
|
||||
|
||||
export type GetOrgResponse = {
|
||||
org: Org & { settings: { } | null };
|
||||
org: Org;
|
||||
};
|
||||
|
||||
registry.registerPath({
|
||||
@@ -64,23 +64,9 @@ export async function getOrg(
|
||||
);
|
||||
}
|
||||
|
||||
// Parse settings from JSON string back to object
|
||||
let parsedSettings = null;
|
||||
if (org[0].settings) {
|
||||
try {
|
||||
parsedSettings = JSON.parse(org[0].settings);
|
||||
} catch (error) {
|
||||
// If parsing fails, keep as string for backward compatibility
|
||||
parsedSettings = org[0].settings;
|
||||
}
|
||||
}
|
||||
|
||||
return response<GetOrgResponse>(res, {
|
||||
data: {
|
||||
org: {
|
||||
...org[0],
|
||||
settings: parsedSettings
|
||||
}
|
||||
org: org[0]
|
||||
},
|
||||
success: true,
|
||||
error: false,
|
||||
|
||||
Reference in New Issue
Block a user