chore: Upgrade sequelize dependency

This commit is contained in:
Tom Moor
2022-06-06 21:54:54 +02:00
parent 4bccb4c4ec
commit e5b524e4c2
6 changed files with 116 additions and 137 deletions

View File

@@ -312,9 +312,12 @@ class Collection extends ParanoidModel {
* @param id uuid or urlId
* @returns collection instance
*/
static async findByPk(id: Identifier, options: FindOptions<Collection> = {}) {
static async findByPk(
id: Identifier,
options: FindOptions<Collection> = {}
): Promise<Collection | null> {
if (typeof id !== "string") {
return undefined;
return null;
}
if (isUUID(id)) {
@@ -336,7 +339,7 @@ class Collection extends ParanoidModel {
});
}
return undefined;
return null;
}
/**