Fix: Complete WOPI integration - resolve all compilation errors
Go backend: - Clean up corrupted wopi.go file (remove duplicate struct definitions) - Remove duplicate UpdateFileSize method declaration Flutter frontend: - Fix SessionLoaded reference - use default base URL instead - Replace AppTheme.primary with AppTheme.accentColor - Remove unused local variables from file_browser_bloc
This commit is contained in:
@@ -675,11 +675,3 @@ func (db *DB) MarkChallengeUsed(ctx context.Context, challenge []byte) error {
|
||||
return err
|
||||
}
|
||||
// UpdateFileSize updates the size and last_modified timestamp of a file
|
||||
func (db *DB) UpdateFileSize(ctx context.Context, fileID uuid.UUID, size int64) error {
|
||||
_, err := db.ExecContext(ctx, `
|
||||
UPDATE files
|
||||
SET size = $1, last_modified = NOW()
|
||||
WHERE id = $2
|
||||
`, size, fileID)
|
||||
return err
|
||||
}
|
||||
@@ -115,10 +115,6 @@ type WOPISessionResponse struct {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user