fix: notification date

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2025-03-25 21:35:18 -03:00
parent 26cf036a94
commit af99dd8887
6 changed files with 7 additions and 11 deletions

View file

@ -144,7 +144,7 @@ namespace OCA\Libresign;
* password?: LibresignSignatureMethodPassword,
* }
* @psalm-type LibresignNotify = array{
* date: int,
* date: string,
* method: "activity"|"notify"|"mail",
* }
* @psalm-type LibresignSigner = array{

View file

@ -207,7 +207,7 @@ class RequestSignatureService {
displayName: $user['displayName'] ?? '',
description: $user['description'] ?? '',
// Only notify if wasn't notified iet
notify: $user['notify'] ? false : true,
notify: !empty($user['notify']) ? false : true,
fileId: $fileId,
);
}
@ -217,7 +217,7 @@ class RequestSignatureService {
displayName: $user['displayName'] ?? '',
description: $user['description'] ?? '',
// Only notify if wasn't notified iet
notify: $user['notify'] ? false : true,
notify: !empty($user['notify']) ? false : true,
fileId: $fileId,
);
}

View file

@ -473,8 +473,7 @@
],
"properties": {
"date": {
"type": "integer",
"format": "int64"
"type": "string"
},
"method": {
"type": "string",

View file

@ -410,8 +410,7 @@
],
"properties": {
"date": {
"type": "integer",
"format": "int64"
"type": "string"
},
"method": {
"type": "string",

View file

@ -1173,8 +1173,7 @@ export type components = {
type: string;
};
Notify: {
/** Format: int64 */
date: number;
date: string;
/** @enum {string} */
method: "activity" | "notify" | "mail";
};

View file

@ -1035,8 +1035,7 @@ export type components = {
type: string;
};
Notify: {
/** Format: int64 */
date: number;
date: string;
/** @enum {string} */
method: "activity" | "notify" | "mail";
};