Update group ID and time when splicing
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
This commit is contained in:
parent
1394557f81
commit
7f0be08799
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue