fixed missing reset of the uploadRequired flag

This commit is contained in:
Philipp Häfelfinger 2019-03-20 00:24:09 +01:00
parent 8068d829fe
commit a871cfbb11

View File

@ -169,7 +169,7 @@ func (d *localDataStore) SavePiwigoIdAndUpdateUploadFlag(md5Sum string, piwigoId
return err
}
stmt, err := tx.Prepare("UPDATE image SET piwigoId = ? WHERE md5sum = ?")
stmt, err := tx.Prepare("UPDATE image SET piwigoId = ?, uploadRequired = 0 WHERE md5sum = ?")
if err != nil {
return err
}