π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Sort cast devices by creation time
Priyanshu Dangare188e0a8c601c
diff --git a/server/pkg/repo/cast/repo.go b/server/pkg/repo/cast/repo.goindex cbf5cafc3e..dd17a59a42 100644--- a/server/pkg/repo/cast/repo.go+++ b/server/pkg/repo/cast/repo.go@@ -31,7 +31,7 @@ func (r *Repository) AddCode(ctx context.Context, pubKey string, ip string) (str}func (r *Repository) GetAllDevices(ctx context.Context, userID int64) ([]cast.CastInfo, error) {- rows, err := r.DB.QueryContext(ctx, "SELECT code, collection_id, ip, last_used_at FROM casting WHERE cast_user = $1 and is_deleted=false", userID)+ rows, err := r.DB.QueryContext(ctx, "SELECT code, collection_id, ip, last_used_at FROM casting WHERE cast_user = $1 and is_deleted=false ORDER BY created_at DESC", userID)if err != nil {return nil, stacktrace.Propagate(err, "failed to query devices")}