Update group ID and time when splicing
ci/woodpecker/push/ociImagePush Pipeline was successful Details

This commit is contained in:
Natty 2024-02-29 23:47:01 +01:00
parent 1394557f81
commit 7f0be08799
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 4 additions and 1 deletions

View File

@ -442,8 +442,9 @@ const prepend = (item: packed.PackNotification): void => {
const itemsNew = [currNotification, group.value];
items.value = [
{
...group,
id: currNotification.id,
type: "group",
created_at: currNotification.created_at,
value: itemsNew,
users: itemsNew.map((n) => {
switch (n.type) {
@ -460,6 +461,8 @@ const prepend = (item: packed.PackNotification): void => {
...items.value,
];
} else if (group.type === "group") {
group.id = currNotification.id;
group.created_at = currNotification.created_at;
group.value = [currNotification, ...group.value];
group.users = group.value.map((n) => {
switch (n.type) {