You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-12-07 23:23:49 +02:00
package update
This commit is contained in:
@@ -19,7 +19,7 @@ export class SharingManager implements ISharingManager {
|
||||
if (sharing.password) {
|
||||
sharing.password = PasswordHelper.cryptPassword(sharing.password);
|
||||
}
|
||||
return await connection.getRepository(SharingEntity).persist(sharing);
|
||||
return await connection.getRepository(SharingEntity).save(sharing);
|
||||
|
||||
|
||||
}
|
||||
@@ -29,7 +29,7 @@ export class SharingManager implements ISharingManager {
|
||||
|
||||
let sharing = await connection.getRepository(SharingEntity).findOne({
|
||||
id: inSharing.id,
|
||||
creator: inSharing.creator.id,
|
||||
creator: inSharing.creator,
|
||||
path: inSharing.path
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ export class SharingManager implements ISharingManager {
|
||||
sharing.includeSubfolders = inSharing.includeSubfolders;
|
||||
sharing.expires = inSharing.expires;
|
||||
|
||||
return await connection.getRepository(SharingEntity).persist(sharing);
|
||||
return await connection.getRepository(SharingEntity).save(sharing);
|
||||
}
|
||||
|
||||
private async removeExpiredLink() {
|
||||
|
||||
Reference in New Issue
Block a user