You've already forked AstralRinth
forked from didirus/AstralRinth
fix moderation
This commit is contained in:
@@ -178,9 +178,9 @@ if (projects.value) {
|
|||||||
|
|
||||||
projects.value = projects.value.map((project) => {
|
projects.value = projects.value.map((project) => {
|
||||||
project.owner = members.value
|
project.owner = members.value
|
||||||
.flat()
|
? members.value.flat().find((x) => x.team_id === project.team_id && x.role === "Owner")
|
||||||
.find((x) => x.team_id === project.team_id && x.role === "Owner");
|
: null;
|
||||||
project.org = orgs.value.find((x) => x.id === project.organization);
|
project.org = orgs.value ? orgs.value.find((x) => x.id === project.organization) : null;
|
||||||
project.age = project.queued ? now - app.$dayjs(project.queued) : Number.MAX_VALUE;
|
project.age = project.queued ? now - app.$dayjs(project.queued) : Number.MAX_VALUE;
|
||||||
project.age_warning = "";
|
project.age_warning = "";
|
||||||
if (project.age > TIME_24H * 2) {
|
if (project.age > TIME_24H * 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user