mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-13 23:25:22 +00:00
Merge branch 'main' of github.com:binwiederhier/ntfy into attachment-s3
This commit is contained in:
@@ -138,6 +138,9 @@ func (c *Store) Remove(ids ...string) error {
|
||||
// deletes orphans (not in the valid ID set and older than 1 hour), and recomputes
|
||||
// the total size from the remaining objects.
|
||||
func (c *Store) sync() error {
|
||||
if c.localIDs == nil {
|
||||
return nil
|
||||
}
|
||||
localIDs, err := c.localIDs()
|
||||
if err != nil {
|
||||
return fmt.Errorf("attachment sync: failed to get valid IDs: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user