Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show admin wallet address in project tab of admin js #1746

Open
wants to merge 1 commit into
base: 1722-see-previous-ownership-changes
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/server/adminJs/tabs/projectsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ export const fillSocialProfileAndQfRounds: After<
const socials = await findSocialProfilesByProjectId({ projectId });
const projectUpdates = await findProjectUpdatesByProjectId(projectId);
const project = await findProjectById(projectId);
const adminUser = await User.findOne({
where: { id: project?.adminUserId },
});
const adminJsBaseUrl = process.env.SERVER_URL;
response.record = {
...record,
Expand All @@ -497,6 +500,7 @@ export const fillSocialProfileAndQfRounds: After<
qfRounds: project?.qfRounds,
projectUpdates,
adminJsBaseUrl,
adminUserAddress: adminUser?.walletAddress,
},
};
return response;
Expand Down Expand Up @@ -715,6 +719,18 @@ export const projectsTab = {
},
position: 1,
},
adminUserAddress: {
type: 'string',
isVirtual: true,
isVisible: {
filter: false,
list: false,
show: true,
edit: false,
new: false,
},
position: 2,
},
adminAddressHistory: {
type: 'string[]',
isVisible: {
Expand All @@ -724,7 +740,7 @@ export const projectsTab = {
edit: false,
new: false,
},
position: 2,
position: 3,
},
contacts: {
isVisible: {
Expand Down
Loading