mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-08 11:11:28 +03:00
Added timestamp to notifications
This commit is contained in:
@@ -2761,6 +2761,7 @@ components:
|
|||||||
- type
|
- type
|
||||||
- text
|
- text
|
||||||
- read
|
- read
|
||||||
|
- timestamp
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
type:
|
type:
|
||||||
@@ -2777,6 +2778,8 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
data:
|
data:
|
||||||
type: object
|
type: object
|
||||||
|
timestamp:
|
||||||
|
type: number
|
||||||
NotificationAction:
|
NotificationAction:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ exports.createNotification = (type, actions, data, user_uid) => {
|
|||||||
data: data,
|
data: data,
|
||||||
user_uid: user_uid,
|
user_uid: user_uid,
|
||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
read: false
|
read: false,
|
||||||
|
timestamp: Date.now()/1000
|
||||||
}
|
}
|
||||||
return notification;
|
return notification;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,4 +12,5 @@ export type Notification = {
|
|||||||
action?: Array<NotificationAction>;
|
action?: Array<NotificationAction>;
|
||||||
read: boolean;
|
read: boolean;
|
||||||
data?: any;
|
data?: any;
|
||||||
|
timestamp: number;
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user