chore: Upgrade sequelize dependency
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user